pub struct ScreenBufferFormatPropertiesQNX<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub format: Format,
pub external_format: u64,
pub screen_usage: u64,
pub format_features: FormatFeatureFlags,
pub sampler_ycbcr_conversion_components: ComponentMapping,
pub suggested_ycbcr_model: SamplerYcbcrModelConversion,
pub suggested_ycbcr_range: SamplerYcbcrRange,
pub suggested_x_chroma_offset: ChromaLocation,
pub suggested_y_chroma_offset: ChromaLocation,
/* private fields */
}Expand description
Native structure VkScreenBufferFormatPropertiesQNX.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *mut c_voidNative field pNext.
format: FormatNative field format.
external_format: u64Native field externalFormat.
screen_usage: u64Native field screenUsage.
format_features: FormatFeatureFlagsNative field formatFeatures.
sampler_ycbcr_conversion_components: ComponentMappingNative field samplerYcbcrConversionComponents.
suggested_ycbcr_model: SamplerYcbcrModelConversionNative field suggestedYcbcrModel.
suggested_ycbcr_range: SamplerYcbcrRangeNative field suggestedYcbcrRange.
suggested_x_chroma_offset: ChromaLocationNative field suggestedXChromaOffset.
suggested_y_chroma_offset: ChromaLocationNative field suggestedYChromaOffset.
Implementations§
Source§impl<'a> ScreenBufferFormatPropertiesQNX<'a>
impl<'a> ScreenBufferFormatPropertiesQNX<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_format(self, value: Format) -> Self
pub fn set_format(self, value: Format) -> Self
Set native field format without native effects.
Sourcepub fn set_external_format(self, value: u64) -> Self
pub fn set_external_format(self, value: u64) -> Self
Set native field externalFormat without native effects.
Sourcepub fn set_screen_usage(self, value: u64) -> Self
pub fn set_screen_usage(self, value: u64) -> Self
Set native field screenUsage without native effects.
Sourcepub fn set_format_features(self, value: FormatFeatureFlags) -> Self
pub fn set_format_features(self, value: FormatFeatureFlags) -> Self
Set native field formatFeatures without native effects.
Sourcepub fn set_sampler_ycbcr_conversion_components(
self,
value: ComponentMapping,
) -> Self
pub fn set_sampler_ycbcr_conversion_components( self, value: ComponentMapping, ) -> Self
Set native field samplerYcbcrConversionComponents without native effects.
Sourcepub fn set_suggested_ycbcr_model(
self,
value: SamplerYcbcrModelConversion,
) -> Self
pub fn set_suggested_ycbcr_model( self, value: SamplerYcbcrModelConversion, ) -> Self
Set native field suggestedYcbcrModel without native effects.
Sourcepub fn set_suggested_ycbcr_range(self, value: SamplerYcbcrRange) -> Self
pub fn set_suggested_ycbcr_range(self, value: SamplerYcbcrRange) -> Self
Set native field suggestedYcbcrRange without native effects.
Sourcepub fn set_suggested_x_chroma_offset(self, value: ChromaLocation) -> Self
pub fn set_suggested_x_chroma_offset(self, value: ChromaLocation) -> Self
Set native field suggestedXChromaOffset without native effects.
Sourcepub fn set_suggested_y_chroma_offset(self, value: ChromaLocation) -> Self
pub fn set_suggested_y_chroma_offset(self, value: ChromaLocation) -> Self
Set native field suggestedYChromaOffset 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.
Trait Implementations§
Source§impl<'a> Default for ScreenBufferFormatPropertiesQNX<'a>
Available on crate feature platform-screen only.
impl<'a> Default for ScreenBufferFormatPropertiesQNX<'a>
platform-screen only.impl<'a, 'root> Extends<ScreenBufferPropertiesQNX<'root>> for ScreenBufferFormatPropertiesQNX<'a>
platform-screen only.