Enum
VkChromaLocation
Position of downsampled chroma samples
The VkChromaLocation enum defines the location of downsampled chroma component samples relative to the luma samples, and is defined as:
typedef enum VkChromaLocation {
VK_CHROMA_LOCATION_COSITED_EVEN = 0,
VK_CHROMA_LOCATION_MIDPOINT = 1,
// Provided by extensions
VK_CHROMA_LOCATION_COSITED_EVEN_KHR = VK_CHROMA_LOCATION_COSITED_EVEN,
VK_CHROMA_LOCATION_MIDPOINT_KHR = VK_CHROMA_LOCATION_MIDPOINT,
} VkChromaLocation;
pub struct ChromaLocation(u32);
impl ChromaLocation {
pub const COSITED_EVEN: Self = 0;
pub const MIDPOINT: Self = 1;
pub const COSITED_EVEN_KHR: Self = Self::COSITED_EVEN;
pub const MIDPOINT_KHR: Self = Self::MIDPOINT;
}
#define VkChromaLocationKHR VkChromaLocation
const ChromaLocationKHR: _ = vk::ChromaLocation;
VK_CHROMA_LOCATION_COSITED_EVENspecifies that downsampled chroma samples are aligned with luma samples with even coordinates.VK_CHROMA_LOCATION_MIDPOINTspecifies that downsampled chroma samples are located half way between each even luma sample and the nearest higher odd luma sample.
Parent
VK_VERSION_1_1Type
Enum