- java.lang.Object
-
- java.lang.Enum<VulkanStencilOp>
-
- com.io7m.jcoronado.api.VulkanStencilOp
-
- All Implemented Interfaces:
VulkanEnumIntegerType
,java.io.Serializable
,java.lang.Comparable<VulkanStencilOp>
public enum VulkanStencilOp extends java.lang.Enum<VulkanStencilOp> implements VulkanEnumIntegerType
- See Also:
- "VkStencilOp"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VK_STENCIL_OP_DECREMENT_AND_CLAMP
VK_STENCIL_OP_DECREMENT_AND_CLAMP decrements the current value and clamps to 0.VK_STENCIL_OP_DECREMENT_AND_WRAP
VK_STENCIL_OP_DECREMENT_AND_WRAP decrements the current value and wraps to the maximum possible value when the value would go below 0.VK_STENCIL_OP_INCREMENT_AND_CLAMP
VK_STENCIL_OP_INCREMENT_AND_CLAMP increments the current value and clamps to the maximum representable unsigned value.VK_STENCIL_OP_INCREMENT_AND_WRAP
VK_STENCIL_OP_INCREMENT_AND_WRAP increments the current value and wraps to 0 when the maximum value would have been exceeded.VK_STENCIL_OP_INVERT
VK_STENCIL_OP_INVERT bitwise-inverts the current value.VK_STENCIL_OP_KEEP
VK_STENCIL_OP_KEEP keeps the current value.VK_STENCIL_OP_REPLACE
VK_STENCIL_OP_REPLACE sets the value to reference.VK_STENCIL_OP_ZERO
VK_STENCIL_OP_ZERO sets the value to 0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static VulkanStencilOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VulkanStencilOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VK_STENCIL_OP_KEEP
public static final VulkanStencilOp VK_STENCIL_OP_KEEP
VK_STENCIL_OP_KEEP keeps the current value.
-
VK_STENCIL_OP_ZERO
public static final VulkanStencilOp VK_STENCIL_OP_ZERO
VK_STENCIL_OP_ZERO sets the value to 0.
-
VK_STENCIL_OP_REPLACE
public static final VulkanStencilOp VK_STENCIL_OP_REPLACE
VK_STENCIL_OP_REPLACE sets the value to reference.
-
VK_STENCIL_OP_INCREMENT_AND_CLAMP
public static final VulkanStencilOp VK_STENCIL_OP_INCREMENT_AND_CLAMP
VK_STENCIL_OP_INCREMENT_AND_CLAMP increments the current value and clamps to the maximum representable unsigned value.
-
VK_STENCIL_OP_DECREMENT_AND_CLAMP
public static final VulkanStencilOp VK_STENCIL_OP_DECREMENT_AND_CLAMP
VK_STENCIL_OP_DECREMENT_AND_CLAMP decrements the current value and clamps to 0.
-
VK_STENCIL_OP_INVERT
public static final VulkanStencilOp VK_STENCIL_OP_INVERT
VK_STENCIL_OP_INVERT bitwise-inverts the current value.
-
VK_STENCIL_OP_INCREMENT_AND_WRAP
public static final VulkanStencilOp VK_STENCIL_OP_INCREMENT_AND_WRAP
VK_STENCIL_OP_INCREMENT_AND_WRAP increments the current value and wraps to 0 when the maximum value would have been exceeded.
-
VK_STENCIL_OP_DECREMENT_AND_WRAP
public static final VulkanStencilOp VK_STENCIL_OP_DECREMENT_AND_WRAP
VK_STENCIL_OP_DECREMENT_AND_WRAP decrements the current value and wraps to the maximum possible value when the value would go below 0.
-
-
Method Detail
-
values
public static VulkanStencilOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VulkanStencilOp c : VulkanStencilOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VulkanStencilOp valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
- Specified by:
value
in interfaceVulkanEnumIntegerType
- Returns:
- The integer value of the constant
-
-