Struct ash::vk::SamplerYcbcrConversionCreateInfo
source · #[repr(C)]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,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§format: Format
§ycbcr_model: SamplerYcbcrModelConversion
§ycbcr_range: SamplerYcbcrRange
§components: ComponentMapping
§x_chroma_offset: ChromaLocation
§y_chroma_offset: ChromaLocation
§chroma_filter: Filter
§force_explicit_reconstruction: Bool32
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> SamplerYcbcrConversionCreateInfo<'a>
impl<'a> SamplerYcbcrConversionCreateInfo<'a>
pub fn format(self, format: Format) -> Self
pub fn ycbcr_model(self, ycbcr_model: SamplerYcbcrModelConversion) -> Self
pub fn ycbcr_range(self, ycbcr_range: SamplerYcbcrRange) -> Self
pub fn components(self, components: ComponentMapping) -> Self
pub fn x_chroma_offset(self, x_chroma_offset: ChromaLocation) -> Self
pub fn y_chroma_offset(self, y_chroma_offset: ChromaLocation) -> Self
pub fn chroma_filter(self, chroma_filter: Filter) -> Self
pub fn force_explicit_reconstruction( self, force_explicit_reconstruction: bool, ) -> Self
sourcepub fn push_next<T: ExtendsSamplerYcbcrConversionCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsSamplerYcbcrConversionCreateInfo + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for SamplerYcbcrConversionCreateInfo<'a>
impl<'a> Clone for SamplerYcbcrConversionCreateInfo<'a>
source§fn clone(&self) -> SamplerYcbcrConversionCreateInfo<'a>
fn clone(&self) -> SamplerYcbcrConversionCreateInfo<'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 SamplerYcbcrConversionCreateInfo<'a>
impl<'a> Debug for SamplerYcbcrConversionCreateInfo<'a>
source§impl Default for SamplerYcbcrConversionCreateInfo<'_>
impl Default for SamplerYcbcrConversionCreateInfo<'_>
source§impl<'a> TaggedStructure for SamplerYcbcrConversionCreateInfo<'a>
impl<'a> TaggedStructure for SamplerYcbcrConversionCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::SAMPLER_YCBCR_CONVERSION_CREATE_INFO
impl<'a> Copy for SamplerYcbcrConversionCreateInfo<'a>
impl Send for SamplerYcbcrConversionCreateInfo<'_>
impl Sync for SamplerYcbcrConversionCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for SamplerYcbcrConversionCreateInfo<'a>
impl<'a> RefUnwindSafe for SamplerYcbcrConversionCreateInfo<'a>
impl<'a> Unpin for SamplerYcbcrConversionCreateInfo<'a>
impl<'a> UnwindSafe for SamplerYcbcrConversionCreateInfo<'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