Realm

vk::mem · Enums · D1

2 public declarations with native signatures and source-owned contracts.

EnRustExperimental

Envk::mem::DefragmentationAlgorithm

Contract

Existing-block relocation policy, derived from the pinned VMA algorithms.

Variants

Fast

Variant
Fast

Consolidate sparse blocks into fuller compatible blocks, without same-block moves.

Balanced

Variant
Balanced

Also compact within a block when average allocation/free sizes justify the copy.

Full

Variant
Full

Also try every eligible source at a strictly lower offset within its own block.

Extensive

Variant
Extensive

Evacuate blocks, pack compatible resource classes, then compact remaining gaps. Requires a persistent DefragmentationContext; no native allocation/copy is implicit.

Methods and associated items

clone

Method
fn clone(&self) -> DefragmentationAlgorithm
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> DefragmentationAlgorithm
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &DefragmentationAlgorithm) -> bool
Tests for self and other values to be equal, and is used by ==.

Envk::mem::DefragmentationResource

Contract

Allocator-recorded primary resource, or raw storage, associated with a move.

Variants

Buffer

Variant
Buffer(Buffer)
No public source comment is attached to this declaration.

Image

Variant
Image(Image)
No public source comment is attached to this declaration.

Unassociated

Variant
Unassociated

Raw storage without an allocator-recorded resource. External bindings and all resources using this storage remain the caller’s responsibility.

Methods and associated items

clone

Method
fn clone(&self) -> DefragmentationResource
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

eq

Method
fn eq(&self, other: &DefragmentationResource) -> bool
Tests for self and other values to be equal, and is used by ==.