#[repr(C)]pub struct SparseMemoryBind {
pub resource_offset: DeviceSize,
pub size: DeviceSize,
pub memory: DeviceMemory,
pub memory_offset: DeviceSize,
pub flags: SparseMemoryBindFlags,
}Expand description
Native structure VkSparseMemoryBind.
Fields§
§resource_offset: DeviceSizeNative field resourceOffset.
size: DeviceSizeNative field size.
memory: DeviceMemoryNative field memory.
memory_offset: DeviceSizeNative field memoryOffset.
flags: SparseMemoryBindFlagsNative field flags.
Implementations§
Source§impl SparseMemoryBind
impl SparseMemoryBind
Sourcepub fn set_resource_offset(self, value: DeviceSize) -> Self
pub fn set_resource_offset(self, value: DeviceSize) -> Self
Set native field resourceOffset without native effects.
Sourcepub fn set_size(self, value: DeviceSize) -> Self
pub fn set_size(self, value: DeviceSize) -> Self
Set native field size without native effects.
Sourcepub fn set_memory(self, value: DeviceMemory) -> Self
pub fn set_memory(self, value: DeviceMemory) -> Self
Set native field memory without native effects.
Sourcepub fn set_memory_offset(self, value: DeviceSize) -> Self
pub fn set_memory_offset(self, value: DeviceSize) -> Self
Set native field memoryOffset without native effects.
Sourcepub fn set_flags(self, value: SparseMemoryBindFlags) -> Self
pub fn set_flags(self, value: SparseMemoryBindFlags) -> Self
Set native field flags without native effects.
Trait Implementations§
Source§impl Clone for SparseMemoryBind
impl Clone for SparseMemoryBind
impl Copy for SparseMemoryBind
Auto Trait Implementations§
impl Forget for SparseMemoryBind
impl Freeze for SparseMemoryBind
impl RefUnwindSafe for SparseMemoryBind
impl Send for SparseMemoryBind
impl Sync for SparseMemoryBind
impl Unpin for SparseMemoryBind
impl UnsafeUnpin for SparseMemoryBind
impl UnwindSafe for SparseMemoryBind
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