#[repr(C)]pub struct SparseImageMemoryBind {
pub subresource: ImageSubresource,
pub offset: Offset3D,
pub extent: Extent3D,
pub memory: DeviceMemory,
pub memory_offset: DeviceSize,
pub flags: SparseMemoryBindFlags,
}Expand description
Native structure VkSparseImageMemoryBind.
Fields§
§subresource: ImageSubresourceNative field subresource.
offset: Offset3DNative field offset.
extent: Extent3DNative field extent.
memory: DeviceMemoryNative field memory.
memory_offset: DeviceSizeNative field memoryOffset.
flags: SparseMemoryBindFlagsNative field flags.
Implementations§
Source§impl SparseImageMemoryBind
impl SparseImageMemoryBind
Sourcepub fn set_subresource(self, value: ImageSubresource) -> Self
pub fn set_subresource(self, value: ImageSubresource) -> Self
Set native field subresource without native effects.
Sourcepub fn set_offset(self, value: Offset3D) -> Self
pub fn set_offset(self, value: Offset3D) -> Self
Set native field offset without native effects.
Sourcepub fn set_extent(self, value: Extent3D) -> Self
pub fn set_extent(self, value: Extent3D) -> Self
Set native field extent 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 SparseImageMemoryBind
impl Clone for SparseImageMemoryBind
impl Copy for SparseImageMemoryBind
Auto Trait Implementations§
impl Forget for SparseImageMemoryBind
impl Freeze for SparseImageMemoryBind
impl Move for SparseImageMemoryBind
impl RefUnwindSafe for SparseImageMemoryBind
impl Send for SparseImageMemoryBind
impl Sync for SparseImageMemoryBind
impl Unpin for SparseImageMemoryBind
impl UnsafeUnpin for SparseImageMemoryBind
impl UnwindSafe for SparseImageMemoryBind
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