Struct ash::vk::definitions::DisplaySurfaceCreateInfoKHR
source · #[repr(C)]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: SurfaceTransformFlagsKHR,
pub global_alpha: f32,
pub alpha_mode: DisplayPlaneAlphaFlagsKHR,
pub image_extent: Extent2D,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: DisplaySurfaceCreateFlagsKHR
§display_mode: DisplayModeKHR
§plane_index: u32
§plane_stack_index: u32
§transform: SurfaceTransformFlagsKHR
§global_alpha: f32
§alpha_mode: DisplayPlaneAlphaFlagsKHR
§image_extent: Extent2D
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> DisplaySurfaceCreateInfoKHR<'a>
impl<'a> DisplaySurfaceCreateInfoKHR<'a>
pub fn flags(self, flags: DisplaySurfaceCreateFlagsKHR) -> Self
pub fn display_mode(self, display_mode: DisplayModeKHR) -> Self
pub fn plane_index(self, plane_index: u32) -> Self
pub fn plane_stack_index(self, plane_stack_index: u32) -> Self
pub fn transform(self, transform: SurfaceTransformFlagsKHR) -> Self
pub fn global_alpha(self, global_alpha: f32) -> Self
pub fn alpha_mode(self, alpha_mode: DisplayPlaneAlphaFlagsKHR) -> Self
pub fn image_extent(self, image_extent: Extent2D) -> Self
Trait Implementations§
source§impl<'a> Clone for DisplaySurfaceCreateInfoKHR<'a>
impl<'a> Clone for DisplaySurfaceCreateInfoKHR<'a>
source§fn clone(&self) -> DisplaySurfaceCreateInfoKHR<'a>
fn clone(&self) -> DisplaySurfaceCreateInfoKHR<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for DisplaySurfaceCreateInfoKHR<'a>
impl<'a> Debug for DisplaySurfaceCreateInfoKHR<'a>
source§impl Default for DisplaySurfaceCreateInfoKHR<'_>
impl Default for DisplaySurfaceCreateInfoKHR<'_>
source§impl<'a> TaggedStructure for DisplaySurfaceCreateInfoKHR<'a>
impl<'a> TaggedStructure for DisplaySurfaceCreateInfoKHR<'a>
const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_SURFACE_CREATE_INFO_KHR
impl<'a> Copy for DisplaySurfaceCreateInfoKHR<'a>
impl Send for DisplaySurfaceCreateInfoKHR<'_>
impl Sync for DisplaySurfaceCreateInfoKHR<'_>
Auto Trait Implementations§
impl<'a> Freeze for DisplaySurfaceCreateInfoKHR<'a>
impl<'a> RefUnwindSafe for DisplaySurfaceCreateInfoKHR<'a>
impl<'a> Unpin for DisplaySurfaceCreateInfoKHR<'a>
impl<'a> UnwindSafe for DisplaySurfaceCreateInfoKHR<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more