ash::vk

Type Alias SamplerYcbcrConversionCreateInfoKHR

Source
pub type SamplerYcbcrConversionCreateInfoKHR<'a> = SamplerYcbcrConversionCreateInfo<'a>;

Aliased Type§

struct SamplerYcbcrConversionCreateInfoKHR<'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: u32,
    pub _marker: PhantomData<&'a ()>,
}

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: u32§_marker: PhantomData<&'a ()>

Implementations

Source§

impl<'a> SamplerYcbcrConversionCreateInfo<'a>

Source

pub fn format(self, format: Format) -> Self

Source

pub fn ycbcr_model(self, ycbcr_model: SamplerYcbcrModelConversion) -> Self

Source

pub fn ycbcr_range(self, ycbcr_range: SamplerYcbcrRange) -> Self

Source

pub fn components(self, components: ComponentMapping) -> Self

Source

pub fn x_chroma_offset(self, x_chroma_offset: ChromaLocation) -> Self

Source

pub fn y_chroma_offset(self, y_chroma_offset: ChromaLocation) -> Self

Source

pub fn chroma_filter(self, chroma_filter: Filter) -> Self

Source

pub fn force_explicit_reconstruction( self, force_explicit_reconstruction: bool, ) -> Self

Source

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>

Source§

fn clone(&self) -> SamplerYcbcrConversionCreateInfo<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for SamplerYcbcrConversionCreateInfo<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SamplerYcbcrConversionCreateInfo<'_>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a> TaggedStructure for SamplerYcbcrConversionCreateInfo<'a>

Source§

const STRUCTURE_TYPE: StructureType = StructureType::SAMPLER_YCBCR_CONVERSION_CREATE_INFO

Source§

impl<'a> Copy for SamplerYcbcrConversionCreateInfo<'a>

Source§

impl Send for SamplerYcbcrConversionCreateInfo<'_>

Source§

impl Sync for SamplerYcbcrConversionCreateInfo<'_>