pub struct CoarseSampleOrderCustomNV<'a> {
pub shading_rate: ShadingRatePaletteEntryNV,
pub sample_count: u32,
pub sample_location_count: u32,
pub p_sample_locations: *const CoarseSampleLocationNV,
/* private fields */
}Expand description
Native structure VkCoarseSampleOrderCustomNV.
Fields§
§shading_rate: ShadingRatePaletteEntryNVNative field shadingRate.
sample_count: u32Native field sampleCount.
sample_location_count: u32Native field sampleLocationCount.
p_sample_locations: *const CoarseSampleLocationNVNative field pSampleLocations.
Implementations§
Source§impl<'a> CoarseSampleOrderCustomNV<'a>
impl<'a> CoarseSampleOrderCustomNV<'a>
Sourcepub fn set_shading_rate(self, value: ShadingRatePaletteEntryNV) -> Self
pub fn set_shading_rate(self, value: ShadingRatePaletteEntryNV) -> Self
Set native field shadingRate without native effects.
Sourcepub fn set_sample_count(self, value: u32) -> Self
pub fn set_sample_count(self, value: u32) -> Self
Set native field sampleCount without native effects.
Sourcepub fn set_sample_location_count(self, value: u32) -> Self
pub fn set_sample_location_count(self, value: u32) -> Self
Set native count sampleLocationCount 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_sample_locations(
self,
value: &'a [CoarseSampleLocationNV],
) -> Result<Self, ConstructionError>
pub fn set_sample_locations( self, value: &'a [CoarseSampleLocationNV], ) -> Result<Self, ConstructionError>
Borrow pSampleLocations and set checked native count sampleLocationCount.
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.