Struct vulkano::memory::SparseBufferMemoryBind
source · pub struct SparseBufferMemoryBind {
pub offset: DeviceSize,
pub size: DeviceSize,
pub memory: Option<(Arc<DeviceMemory>, DeviceSize)>,
}
Expand description
Parameters for a single sparse bind operation on a buffer.
Fields§
§offset: DeviceSize
The offset in bytes from the start of the buffer’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 buffer’s memory requirements.
If None
, specifies that existing memory at the specified location is to be unbound.
The default value is None
.
Trait Implementations§
source§impl Clone for SparseBufferMemoryBind
impl Clone for SparseBufferMemoryBind
source§fn clone(&self) -> SparseBufferMemoryBind
fn clone(&self) -> SparseBufferMemoryBind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SparseBufferMemoryBind
impl Debug for SparseBufferMemoryBind
source§impl Default for SparseBufferMemoryBind
impl Default for SparseBufferMemoryBind
source§fn default() -> SparseBufferMemoryBind
fn default() -> SparseBufferMemoryBind
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SparseBufferMemoryBind
impl Send for SparseBufferMemoryBind
impl Sync for SparseBufferMemoryBind
impl Unpin for SparseBufferMemoryBind
impl !UnwindSafe for SparseBufferMemoryBind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more