Enum Class VulkanComponentSwizzle
- All Implemented Interfaces:
VulkanEnumIntegerType,Serializable,Comparable<VulkanComponentSwizzle>,Constable
public enum VulkanComponentSwizzle
extends Enum<VulkanComponentSwizzle>
implements VulkanEnumIntegerType
Specify how a component is swizzled.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the component is set to the value of the A component of the image.Specifies that the component is set to the value of the B component of the image.Specifies that the component is set to the value of the G component of the image.Specifies that the component is set to the identity swizzle.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.Specifies that the component is set to the value of the R component of the image.Specifies that the component is set to zero. -
Method Summary
Modifier and TypeMethodDescriptionintvalue()static VulkanComponentSwizzleReturns the enum constant of this class with the specified name.static VulkanComponentSwizzle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VK_COMPONENT_SWIZZLE_IDENTITY
Specifies that the component is set to the identity swizzle. -
VK_COMPONENT_SWIZZLE_ZERO
Specifies that the component is set to zero. -
VK_COMPONENT_SWIZZLE_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. -
VK_COMPONENT_SWIZZLE_R
Specifies that the component is set to the value of the R component of the image. -
VK_COMPONENT_SWIZZLE_G
Specifies that the component is set to the value of the G component of the image. -
VK_COMPONENT_SWIZZLE_B
Specifies that the component is set to the value of the B component of the image. -
VK_COMPONENT_SWIZZLE_A
Specifies that the component is set to the value of the A component of the image.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()- Specified by:
valuein interfaceVulkanEnumIntegerType- Returns:
- The integer value of the constant
-