Struct ash::vk::definitions::DisplayPropertiesKHR
source · #[repr(C)]pub struct DisplayPropertiesKHR<'a> {
pub display: DisplayKHR,
pub display_name: *const c_char,
pub physical_dimensions: Extent2D,
pub physical_resolution: Extent2D,
pub supported_transforms: SurfaceTransformFlagsKHR,
pub plane_reorder_possible: Bool32,
pub persistent_content: Bool32,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§display: DisplayKHR
§display_name: *const c_char
§physical_dimensions: Extent2D
§physical_resolution: Extent2D
§supported_transforms: SurfaceTransformFlagsKHR
§plane_reorder_possible: Bool32
§persistent_content: Bool32
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> DisplayPropertiesKHR<'a>
impl<'a> DisplayPropertiesKHR<'a>
pub fn display(self, display: DisplayKHR) -> Self
pub fn display_name(self, display_name: &'a CStr) -> Self
pub unsafe fn display_name_as_c_str(&self) -> Option<&CStr>
pub fn physical_dimensions(self, physical_dimensions: Extent2D) -> Self
pub fn physical_resolution(self, physical_resolution: Extent2D) -> Self
pub fn supported_transforms( self, supported_transforms: SurfaceTransformFlagsKHR, ) -> Self
pub fn plane_reorder_possible(self, plane_reorder_possible: bool) -> Self
pub fn persistent_content(self, persistent_content: bool) -> Self
Trait Implementations§
source§impl<'a> Clone for DisplayPropertiesKHR<'a>
impl<'a> Clone for DisplayPropertiesKHR<'a>
source§fn clone(&self) -> DisplayPropertiesKHR<'a>
fn clone(&self) -> DisplayPropertiesKHR<'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 DisplayPropertiesKHR<'a>
impl<'a> Debug for DisplayPropertiesKHR<'a>
source§impl Default for DisplayPropertiesKHR<'_>
impl Default for DisplayPropertiesKHR<'_>
impl<'a> Copy for DisplayPropertiesKHR<'a>
impl Send for DisplayPropertiesKHR<'_>
impl Sync for DisplayPropertiesKHR<'_>
Auto Trait Implementations§
impl<'a> Freeze for DisplayPropertiesKHR<'a>
impl<'a> RefUnwindSafe for DisplayPropertiesKHR<'a>
impl<'a> Unpin for DisplayPropertiesKHR<'a>
impl<'a> UnwindSafe for DisplayPropertiesKHR<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)