pub struct SparseImageOpaqueMemoryBind {
    pub offset: DeviceSize,
    pub size: DeviceSize,
    pub memory: Option<(Arc<DeviceMemory>, DeviceSize)>,
    pub metadata: bool,
}
Expand description

Parameters for a single sparse bind operation on parts of an image with an opaque memory layout.

This type of sparse bind should be used for mip tail regions, the metadata aspect, and for the normal regions of images that do not have the sparse_residency flag set.

Fields

offset: DeviceSize

The offset in bytes from the start of the image’s memory, where memory is to be (un)bound.

The default value is 0.

size: DeviceSize

The size in bytes of the memory to be (un)bound.

The default value is 0, which must be overridden.

memory: Option<(Arc<DeviceMemory>, DeviceSize)>

If Some, specifies the memory and an offset into that memory that is to be bound. The provided memory must match the image’s memory requirements.

If None, specifies that existing memory at the specified location is to be unbound.

The default value is None.

metadata: bool

Sets whether the binding should apply to the metadata aspect of the image, or to the normal texel data.

The default value is false.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.