pub struct ShadingRatePaletteNV<'a> {
pub shading_rate_palette_entry_count: u32,
pub p_shading_rate_palette_entries: *const ShadingRatePaletteEntryNV,
/* private fields */
}Expand description
Native structure VkShadingRatePaletteNV.
Fields§
§shading_rate_palette_entry_count: u32Native field shadingRatePaletteEntryCount.
p_shading_rate_palette_entries: *const ShadingRatePaletteEntryNVNative field pShadingRatePaletteEntries.
Implementations§
Source§impl<'a> ShadingRatePaletteNV<'a>
impl<'a> ShadingRatePaletteNV<'a>
Sourcepub fn set_shading_rate_palette_entry_count(self, value: u32) -> Self
pub fn set_shading_rate_palette_entry_count(self, value: u32) -> Self
Set native count shadingRatePaletteEntryCount 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_shading_rate_palette_entries(
self,
value: &'a [ShadingRatePaletteEntryNV],
) -> Result<Self, ConstructionError>
pub fn set_shading_rate_palette_entries( self, value: &'a [ShadingRatePaletteEntryNV], ) -> Result<Self, ConstructionError>
Borrow pShadingRatePaletteEntries and set checked native count shadingRatePaletteEntryCount.
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.