pub struct DisplaySurfaceCreateInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: DisplaySurfaceCreateFlagsKHR,
pub display_mode: DisplayModeKHR,
pub plane_index: u32,
pub plane_stack_index: u32,
pub transform: SurfaceTransformFlagBitsKHR,
pub global_alpha: f32,
pub alpha_mode: DisplayPlaneAlphaFlagBitsKHR,
pub image_extent: Extent2D,
/* private fields */
}Expand description
Native structure VkDisplaySurfaceCreateInfoKHR.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
flags: DisplaySurfaceCreateFlagsKHRNative field flags.
display_mode: DisplayModeKHRNative field displayMode.
plane_index: u32Native field planeIndex.
plane_stack_index: u32Native field planeStackIndex.
transform: SurfaceTransformFlagBitsKHRNative field transform.
global_alpha: f32Native field globalAlpha.
alpha_mode: DisplayPlaneAlphaFlagBitsKHRNative field alphaMode.
image_extent: Extent2DNative field imageExtent.
Implementations§
Source§impl<'a> DisplaySurfaceCreateInfoKHR<'a>
impl<'a> DisplaySurfaceCreateInfoKHR<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_flags(self, value: DisplaySurfaceCreateFlagsKHR) -> Self
pub fn set_flags(self, value: DisplaySurfaceCreateFlagsKHR) -> Self
Set native field flags without native effects.
Sourcepub fn set_display_mode(self, value: DisplayModeKHR) -> Self
pub fn set_display_mode(self, value: DisplayModeKHR) -> Self
Set native field displayMode without native effects.
Sourcepub fn set_plane_index(self, value: u32) -> Self
pub fn set_plane_index(self, value: u32) -> Self
Set native field planeIndex without native effects.
Sourcepub fn set_plane_stack_index(self, value: u32) -> Self
pub fn set_plane_stack_index(self, value: u32) -> Self
Set native field planeStackIndex without native effects.
Sourcepub fn set_transform(self, value: SurfaceTransformFlagBitsKHR) -> Self
pub fn set_transform(self, value: SurfaceTransformFlagBitsKHR) -> Self
Set native field transform without native effects.
Sourcepub fn set_global_alpha(self, value: f32) -> Self
pub fn set_global_alpha(self, value: f32) -> Self
Set native field globalAlpha without native effects.
Sourcepub fn set_alpha_mode(self, value: DisplayPlaneAlphaFlagBitsKHR) -> Self
pub fn set_alpha_mode(self, value: DisplayPlaneAlphaFlagBitsKHR) -> Self
Set native field alphaMode without native effects.
Sourcepub fn set_image_extent(self, value: Extent2D) -> Self
pub fn set_image_extent(self, value: Extent2D) -> Self
Set native field imageExtent without native effects.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
§Errors
Returns a construction error for a changed structure tag or already-linked node.