- java.lang.Object
-
- java.lang.Enum<VulkanLogicOp>
-
- com.io7m.jcoronado.api.VulkanLogicOp
-
- All Implemented Interfaces:
VulkanEnumIntegerType
,java.io.Serializable
,java.lang.Comparable<VulkanLogicOp>
public enum VulkanLogicOp extends java.lang.Enum<VulkanLogicOp> implements VulkanEnumIntegerType
The logical operations supported by Vulkan are summarized in the following table in which:- ¬ is bitwise invert
- ∧ is bitwise and
- ∨ is bitwise or
- ⊕ is bitwise exclusive or
- s is the fragment’s Rs0, Gs0, Bs0 or As0 component value for the fragment output corresponding to the color attachment being updated
- d is the color attachment’s R, G, B or A component value
- See Also:
- "VkLogicOp"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VK_LOGIC_OP_AND
s ∧ dVK_LOGIC_OP_AND_INVERTED
¬ s ∧ dVK_LOGIC_OP_AND_REVERSE
s ∧ ¬ dVK_LOGIC_OP_CLEAR
0VK_LOGIC_OP_COPY
sVK_LOGIC_OP_COPY_INVERTED
¬ sVK_LOGIC_OP_EQUIVALENT
¬ (s ⊕ d)VK_LOGIC_OP_INVERT
¬ dVK_LOGIC_OP_NAND
¬ (s ∧ d)VK_LOGIC_OP_NO_OP
dVK_LOGIC_OP_NOR
¬ (s ∨ d)VK_LOGIC_OP_OR
s ∨ dVK_LOGIC_OP_OR_INVERTED
¬ s ∨ dVK_LOGIC_OP_OR_REVERSE
s ∨ ¬ dVK_LOGIC_OP_SET
all 1sVK_LOGIC_OP_XOR
s ⊕ d
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static VulkanLogicOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VulkanLogicOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VK_LOGIC_OP_CLEAR
public static final VulkanLogicOp VK_LOGIC_OP_CLEAR
0
-
VK_LOGIC_OP_AND
public static final VulkanLogicOp VK_LOGIC_OP_AND
s ∧ d
-
VK_LOGIC_OP_AND_REVERSE
public static final VulkanLogicOp VK_LOGIC_OP_AND_REVERSE
s ∧ ¬ d
-
VK_LOGIC_OP_COPY
public static final VulkanLogicOp VK_LOGIC_OP_COPY
s
-
VK_LOGIC_OP_AND_INVERTED
public static final VulkanLogicOp VK_LOGIC_OP_AND_INVERTED
¬ s ∧ d
-
VK_LOGIC_OP_NO_OP
public static final VulkanLogicOp VK_LOGIC_OP_NO_OP
d
-
VK_LOGIC_OP_XOR
public static final VulkanLogicOp VK_LOGIC_OP_XOR
s ⊕ d
-
VK_LOGIC_OP_OR
public static final VulkanLogicOp VK_LOGIC_OP_OR
s ∨ d
-
VK_LOGIC_OP_NOR
public static final VulkanLogicOp VK_LOGIC_OP_NOR
¬ (s ∨ d)
-
VK_LOGIC_OP_EQUIVALENT
public static final VulkanLogicOp VK_LOGIC_OP_EQUIVALENT
¬ (s ⊕ d)
-
VK_LOGIC_OP_INVERT
public static final VulkanLogicOp VK_LOGIC_OP_INVERT
¬ d
-
VK_LOGIC_OP_OR_REVERSE
public static final VulkanLogicOp VK_LOGIC_OP_OR_REVERSE
s ∨ ¬ d
-
VK_LOGIC_OP_COPY_INVERTED
public static final VulkanLogicOp VK_LOGIC_OP_COPY_INVERTED
¬ s
-
VK_LOGIC_OP_OR_INVERTED
public static final VulkanLogicOp VK_LOGIC_OP_OR_INVERTED
¬ s ∨ d
-
VK_LOGIC_OP_NAND
public static final VulkanLogicOp VK_LOGIC_OP_NAND
¬ (s ∧ d)
-
VK_LOGIC_OP_SET
public static final VulkanLogicOp VK_LOGIC_OP_SET
all 1s
-
-
Method Detail
-
values
public static VulkanLogicOp[] 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 (VulkanLogicOp c : VulkanLogicOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VulkanLogicOp 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
-
-