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,
/* private fields */
}Expand description
Native structure VkHdrMetadataEXT.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
display_primary_red: XYColorEXTNative field displayPrimaryRed.
display_primary_green: XYColorEXTNative field displayPrimaryGreen.
display_primary_blue: XYColorEXTNative field displayPrimaryBlue.
white_point: XYColorEXTNative field whitePoint.
max_luminance: f32Native field maxLuminance.
min_luminance: f32Native field minLuminance.
max_content_light_level: f32Native field maxContentLightLevel.
max_frame_average_light_level: f32Native field maxFrameAverageLightLevel.
Implementations§
Source§impl<'a> HdrMetadataEXT<'a>
impl<'a> HdrMetadataEXT<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_display_primary_red(self, value: XYColorEXT) -> Self
pub fn set_display_primary_red(self, value: XYColorEXT) -> Self
Set native field displayPrimaryRed without native effects.
Sourcepub fn set_display_primary_green(self, value: XYColorEXT) -> Self
pub fn set_display_primary_green(self, value: XYColorEXT) -> Self
Set native field displayPrimaryGreen without native effects.
Sourcepub fn set_display_primary_blue(self, value: XYColorEXT) -> Self
pub fn set_display_primary_blue(self, value: XYColorEXT) -> Self
Set native field displayPrimaryBlue without native effects.
Sourcepub fn set_white_point(self, value: XYColorEXT) -> Self
pub fn set_white_point(self, value: XYColorEXT) -> Self
Set native field whitePoint without native effects.
Sourcepub fn set_max_luminance(self, value: f32) -> Self
pub fn set_max_luminance(self, value: f32) -> Self
Set native field maxLuminance without native effects.
Sourcepub fn set_min_luminance(self, value: f32) -> Self
pub fn set_min_luminance(self, value: f32) -> Self
Set native field minLuminance without native effects.
Sourcepub fn set_max_content_light_level(self, value: f32) -> Self
pub fn set_max_content_light_level(self, value: f32) -> Self
Set native field maxContentLightLevel without native effects.
Sourcepub fn set_max_frame_average_light_level(self, value: f32) -> Self
pub fn set_max_frame_average_light_level(self, value: f32) -> Self
Set native field maxFrameAverageLightLevel 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.