pub struct SparseBufferMemoryBind {
pub offset: u64,
pub size: u64,
pub memory: Option<(Arc<DeviceMemory>, u64)>,
}Expand description
Parameters for a single sparse bind operation on a buffer.
Fields§
§offset: u64The offset in bytes from the start of the buffer’s memory, where memory is to be (un)bound.
The default value is 0.
size: u64The size in bytes of the memory to be (un)bound.
The default value is 0, which must be overridden.
memory: Option<(Arc<DeviceMemory>, u64)>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 duplicate 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 Freeze for SparseBufferMemoryBind
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