pub struct PresentRegionKHR<'a> {
pub rectangle_count: u32,
pub p_rectangles: *const RectLayerKHR,
/* private fields */
}Expand description
Native structure VkPresentRegionKHR.
Fields§
§rectangle_count: u32Native field rectangleCount.
p_rectangles: *const RectLayerKHRNative field pRectangles.
Implementations§
Source§impl<'a> PresentRegionKHR<'a>
impl<'a> PresentRegionKHR<'a>
Sourcepub fn set_rectangle_count(self, value: u32) -> Self
pub fn set_rectangle_count(self, value: u32) -> Self
Set native count rectangleCount 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_rectangles(
self,
value: &'a [RectLayerKHR],
) -> Result<Self, ConstructionError>
pub fn set_rectangles( self, value: &'a [RectLayerKHR], ) -> Result<Self, ConstructionError>
Borrow pRectangles and set checked native count rectangleCount.
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.