namespace Brutal.VulkanApi { /// /// VkComponentSwizzle - Specify how a component is swizzled /// /// /// /// Possible values of the members of VkComponentMapping, specifying the /// component values placed in each component of the output vector, are: /// /// /// // Provided by VK_VERSION_1_0 /// typedef enum VkComponentSwizzle { /// VK_COMPONENT_SWIZZLE_IDENTITY = 0, /// VK_COMPONENT_SWIZZLE_ZERO = 1, /// VK_COMPONENT_SWIZZLE_ONE = 2, /// VK_COMPONENT_SWIZZLE_R = 3, /// VK_COMPONENT_SWIZZLE_G = 4, /// VK_COMPONENT_SWIZZLE_B = 5, /// VK_COMPONENT_SWIZZLE_A = 6, /// } VkComponentSwizzle; /// /// public enum VkComponentSwizzle : int { /// /// Identity specifies that the component is set to the identity swizzle. /// Identity = 0, /// /// Zero specifies that the component is set to zero. /// Zero = 1, /// /// One specifies that the component is set to either 1 or 1.0, depending on whether the type of the image view format is integer or floating-point respectively, as determined by the Format Definition^ section for each VkFormat. /// One = 2, /// /// R specifies that the component is set to the value of the R component of the image. /// R = 3, /// /// G specifies that the component is set to the value of the G component of the image. /// G = 4, /// /// B specifies that the component is set to the value of the B component of the image. /// B = 5, /// /// A specifies that the component is set to the value of the A component of the image. [[resources-image-views-identity-mappings]] Setting the identity swizzle on a component is equivalent to setting the identity mapping on that component. That is: [[resources-component-mappings-equivalent-to-swizzle_identity-table]] .Component Mappings Equivalent To VK_COMPONENT_SWIZZLE_IDENTITY [options="header"] | /// A = 6, /// /// MaxEnum /// MaxEnum = 0x7FFFFFFF, } }