pub struct SamplerYcbcrConversion { /* private fields */ }
Expand description
Describes how sampled image data should converted from a YCbCr representation to an RGB one.
Implementations§
source§impl SamplerYcbcrConversion
impl SamplerYcbcrConversion
sourcepub fn new(
device: Arc<Device>,
create_info: SamplerYcbcrConversionCreateInfo
) -> Result<Arc<SamplerYcbcrConversion>, Validated<VulkanError>>
pub fn new( device: Arc<Device>, create_info: SamplerYcbcrConversionCreateInfo ) -> Result<Arc<SamplerYcbcrConversion>, Validated<VulkanError>>
Creates a new SamplerYcbcrConversion
.
The sampler_ycbcr_conversion
feature must be enabled on the device.
sourcepub unsafe fn from_handle(
device: Arc<Device>,
handle: SamplerYcbcrConversion,
create_info: SamplerYcbcrConversionCreateInfo
) -> Arc<SamplerYcbcrConversion>
pub unsafe fn from_handle( device: Arc<Device>, handle: SamplerYcbcrConversion, create_info: SamplerYcbcrConversionCreateInfo ) -> Arc<SamplerYcbcrConversion>
Creates a new SamplerYcbcrConversion
from a raw object handle.
Safety
handle
must be a valid Vulkan object handle created fromdevice
.create_info
must match the info used to create the object.
sourcepub fn chroma_filter(&self) -> Filter
pub fn chroma_filter(&self) -> Filter
Returns the chroma filter used by the conversion.
sourcepub fn chroma_offset(&self) -> [ChromaLocation; 2]
pub fn chroma_offset(&self) -> [ChromaLocation; 2]
Returns the chroma offsets used by the conversion.
sourcepub fn component_mapping(&self) -> ComponentMapping
pub fn component_mapping(&self) -> ComponentMapping
Returns the component mapping of the conversion.
sourcepub fn force_explicit_reconstruction(&self) -> bool
pub fn force_explicit_reconstruction(&self) -> bool
Returns whether the conversion has forced explicit reconstruction to be enabled.
sourcepub fn ycbcr_model(&self) -> SamplerYcbcrModelConversion
pub fn ycbcr_model(&self) -> SamplerYcbcrModelConversion
Returns the YCbCr model of the conversion.
sourcepub fn ycbcr_range(&self) -> SamplerYcbcrRange
pub fn ycbcr_range(&self) -> SamplerYcbcrRange
Returns the YCbCr range of the conversion.
sourcepub fn is_identical(&self, other: &SamplerYcbcrConversion) -> bool
pub fn is_identical(&self, other: &SamplerYcbcrConversion) -> bool
Returns whether self
is equal or identically defined to other
.
Trait Implementations§
source§impl Debug for SamplerYcbcrConversion
impl Debug for SamplerYcbcrConversion
source§impl DeviceOwned for SamplerYcbcrConversion
impl DeviceOwned for SamplerYcbcrConversion
source§impl Drop for SamplerYcbcrConversion
impl Drop for SamplerYcbcrConversion
source§impl Hash for SamplerYcbcrConversion
impl Hash for SamplerYcbcrConversion
source§impl PartialEq for SamplerYcbcrConversion
impl PartialEq for SamplerYcbcrConversion
impl Eq for SamplerYcbcrConversion
Auto Trait Implementations§
impl !RefUnwindSafe for SamplerYcbcrConversion
impl Send for SamplerYcbcrConversion
impl Sync for SamplerYcbcrConversion
impl Unpin for SamplerYcbcrConversion
impl !UnwindSafe for SamplerYcbcrConversion
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
source§impl<T> DeviceOwnedVulkanObject for Twhere
T: DeviceOwned + VulkanObject,
impl<T> DeviceOwnedVulkanObject for Twhere T: DeviceOwned + VulkanObject,
source§fn set_debug_utils_object_name(
&self,
object_name: Option<&str>
) -> Result<(), VulkanError>
fn set_debug_utils_object_name( &self, object_name: Option<&str> ) -> Result<(), VulkanError>
Assigns a human-readable name to the object for debugging purposes. Read more