GRVkYcbcrComponents Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the component mapping for a Vulkan YCbCr conversion.
public struct GRVkYcbcrComponents : IEquatable<SkiaSharp.GRVkYcbcrComponents>
- Inheritance
-
GRVkYcbcrComponents
- Implements
Examples
Creating a default component mapping (identity swizzle):
var components = new GRVkYcbcrComponents
{
R = 0, // VK_COMPONENT_SWIZZLE_IDENTITY
G = 0,
B = 0,
A = 0,
};
Remarks
`GRVkYcbcrComponents` maps each color component (R, G, B, A) to a source channel index as used by Vulkan's `VkComponentMapping`. It is part of <xref:SkiaSharp.GRVkYcbcrConversionInfo>.
Each property stores a `VkComponentSwizzle` value (as a `uint`) indicating which Vulkan image component feeds the corresponding output channel.
Properties
| Name | Description |
|---|---|
| A |
Gets or sets the Vulkan component swizzle for the alpha channel. |
| B |
Gets or sets the Vulkan component swizzle for the blue channel. |
| G |
Gets or sets the Vulkan component swizzle for the green channel. |
| R |
Gets or sets the Vulkan component swizzle for the red channel. |
Methods
| Name | Description |
|---|---|
| Equals(GRVkYcbcrComponents) |
Indicates whether this component mapping is equal to another GRVkYcbcrComponents. |
| Equals(Object) |
Indicates whether this component mapping is equal to the specified object. |
| GetHashCode() |
Returns a hash code for this component mapping. |
Operators
| Name | Description |
|---|---|
| Equality(GRVkYcbcrComponents, GRVkYcbcrComponents) |
Determines whether two GRVkYcbcrComponents values are equal. |
| Inequality(GRVkYcbcrComponents, GRVkYcbcrComponents) |
Determines whether two GRVkYcbcrComponents values are not equal. |