pub struct SamplerYcbcrConversionCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub format: Format,
pub ycbcr_model: SamplerYcbcrModelConversion,
pub ycbcr_range: SamplerYcbcrRange,
pub components: ComponentMapping,
pub x_chroma_offset: ChromaLocation,
pub y_chroma_offset: ChromaLocation,
pub chroma_filter: Filter,
pub force_explicit_reconstruction: Bool32,
/* private fields */
}Expand description
Native structure VkSamplerYcbcrConversionCreateInfo.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
format: FormatNative field format.
ycbcr_model: SamplerYcbcrModelConversionNative field ycbcrModel.
ycbcr_range: SamplerYcbcrRangeNative field ycbcrRange.
components: ComponentMappingNative field components.
x_chroma_offset: ChromaLocationNative field xChromaOffset.
y_chroma_offset: ChromaLocationNative field yChromaOffset.
chroma_filter: FilterNative field chromaFilter.
force_explicit_reconstruction: Bool32Native field forceExplicitReconstruction.
Implementations§
Source§impl<'a> SamplerYcbcrConversionCreateInfo<'a>
impl<'a> SamplerYcbcrConversionCreateInfo<'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_ycbcr_model(self, value: SamplerYcbcrModelConversion) -> Self
pub fn set_ycbcr_model(self, value: SamplerYcbcrModelConversion) -> Self
Set native field ycbcrModel without native effects.
Sourcepub fn set_ycbcr_range(self, value: SamplerYcbcrRange) -> Self
pub fn set_ycbcr_range(self, value: SamplerYcbcrRange) -> Self
Set native field ycbcrRange without native effects.
Sourcepub fn set_components(self, value: ComponentMapping) -> Self
pub fn set_components(self, value: ComponentMapping) -> Self
Set native field components without native effects.
Sourcepub fn set_x_chroma_offset(self, value: ChromaLocation) -> Self
pub fn set_x_chroma_offset(self, value: ChromaLocation) -> Self
Set native field xChromaOffset without native effects.
Sourcepub fn set_y_chroma_offset(self, value: ChromaLocation) -> Self
pub fn set_y_chroma_offset(self, value: ChromaLocation) -> Self
Set native field yChromaOffset without native effects.
Sourcepub fn set_chroma_filter(self, value: Filter) -> Self
pub fn set_chroma_filter(self, value: Filter) -> Self
Set native field chromaFilter without native effects.
Sourcepub fn set_force_explicit_reconstruction(self, value: Bool32) -> Self
pub fn set_force_explicit_reconstruction(self, value: Bool32) -> Self
Set native field forceExplicitReconstruction 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 SamplerYcbcrConversionCreateInfo<'a>
impl<'a> Default for SamplerYcbcrConversionCreateInfo<'a>
impl<'a, 'root> Extends<SamplerYcbcrConversionCreateInfo<'root>> for ExternalFormatANDROID<'a>
platform-android only.impl<'a, 'root> Extends<SamplerYcbcrConversionCreateInfo<'root>> for ExternalFormatQNX<'a>
platform-screen only.impl<'a, 'root> Extends<SamplerYcbcrConversionCreateInfo<'root>> for SamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM<'a>
impl<'a, 'root> Extends<SamplerYcbcrConversionCreateInfo<'root>> for ExternalFormatOHOS<'a>
platform-ohos only.