Struct ash::vk::HdrMetadataEXT
source · #[repr(C)]pub struct HdrMetadataEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub display_primary_red: XYColorEXT,
pub display_primary_green: XYColorEXT,
pub display_primary_blue: XYColorEXT,
pub white_point: XYColorEXT,
pub max_luminance: f32,
pub min_luminance: f32,
pub max_content_light_level: f32,
pub max_frame_average_light_level: f32,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§display_primary_red: XYColorEXT
§display_primary_green: XYColorEXT
§display_primary_blue: XYColorEXT
§white_point: XYColorEXT
§max_luminance: f32
§min_luminance: f32
§max_content_light_level: f32
§max_frame_average_light_level: f32
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> HdrMetadataEXT<'a>
impl<'a> HdrMetadataEXT<'a>
pub fn display_primary_red(self, display_primary_red: XYColorEXT) -> Self
pub fn display_primary_green(self, display_primary_green: XYColorEXT) -> Self
pub fn display_primary_blue(self, display_primary_blue: XYColorEXT) -> Self
pub fn white_point(self, white_point: XYColorEXT) -> Self
pub fn max_luminance(self, max_luminance: f32) -> Self
pub fn min_luminance(self, min_luminance: f32) -> Self
pub fn max_content_light_level(self, max_content_light_level: f32) -> Self
pub fn max_frame_average_light_level( self, max_frame_average_light_level: f32, ) -> Self
Trait Implementations§
source§impl<'a> Clone for HdrMetadataEXT<'a>
impl<'a> Clone for HdrMetadataEXT<'a>
source§fn clone(&self) -> HdrMetadataEXT<'a>
fn clone(&self) -> HdrMetadataEXT<'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 HdrMetadataEXT<'a>
impl<'a> Debug for HdrMetadataEXT<'a>
source§impl Default for HdrMetadataEXT<'_>
impl Default for HdrMetadataEXT<'_>
source§impl<'a> TaggedStructure for HdrMetadataEXT<'a>
impl<'a> TaggedStructure for HdrMetadataEXT<'a>
const STRUCTURE_TYPE: StructureType = StructureType::HDR_METADATA_EXT
impl<'a> Copy for HdrMetadataEXT<'a>
impl Send for HdrMetadataEXT<'_>
impl Sync for HdrMetadataEXT<'_>
Auto Trait Implementations§
impl<'a> Freeze for HdrMetadataEXT<'a>
impl<'a> RefUnwindSafe for HdrMetadataEXT<'a>
impl<'a> Unpin for HdrMetadataEXT<'a>
impl<'a> UnwindSafe for HdrMetadataEXT<'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