pub struct SparseImageMemoryBindInfo<'a> {
pub image: Image,
pub bind_count: u32,
pub p_binds: *const SparseImageMemoryBind,
/* private fields */
}Expand description
Native structure VkSparseImageMemoryBindInfo.
Fields§
§image: ImageNative field image.
bind_count: u32Native field bindCount.
p_binds: *const SparseImageMemoryBindNative field pBinds.
Implementations§
Source§impl<'a> SparseImageMemoryBindInfo<'a>
impl<'a> SparseImageMemoryBindInfo<'a>
Sourcepub fn set_bind_count(self, value: u32) -> Self
pub fn set_bind_count(self, value: u32) -> Self
Set native count bindCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
Sourcepub fn set_binds(
self,
value: &'a [SparseImageMemoryBind],
) -> Result<Self, ConstructionError>
pub fn set_binds( self, value: &'a [SparseImageMemoryBind], ) -> Result<Self, ConstructionError>
Borrow pBinds and set checked native count bindCount.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
§Errors
Returns a construction error if the length exceeds the native count width.