pub struct SpecializationInfo<'a> {
pub map_entry_count: u32,
pub p_map_entries: *const SpecializationMapEntry,
pub data_size: usize,
pub p_data: *const c_void,
/* private fields */
}Expand description
Native structure VkSpecializationInfo.
Fields§
§map_entry_count: u32Native field mapEntryCount.
p_map_entries: *const SpecializationMapEntryNative field pMapEntries.
data_size: usizeNative field dataSize.
p_data: *const c_voidNative field pData.
Implementations§
Source§impl<'a> SpecializationInfo<'a>
impl<'a> SpecializationInfo<'a>
Sourcepub fn set_map_entry_count(self, value: u32) -> Self
pub fn set_map_entry_count(self, value: u32) -> Self
Set native count mapEntryCount 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_map_entries(
self,
value: &'a [SpecializationMapEntry],
) -> Result<Self, ConstructionError>
pub fn set_map_entries( self, value: &'a [SpecializationMapEntry], ) -> Result<Self, ConstructionError>
Borrow pMapEntries and set checked native count mapEntryCount.
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.
Sourcepub fn set_data_size(self, value: usize) -> Self
pub fn set_data_size(self, value: usize) -> Self
Set native count dataSize 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_data(self, value: &'a [u8]) -> Result<Self, ConstructionError>
pub fn set_data(self, value: &'a [u8]) -> Result<Self, ConstructionError>
Borrow pData and set checked native byte size dataSize.
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.