Enum Class VulkanLogicOp
- All Implemented Interfaces:
VulkanEnumIntegerType, Serializable, Comparable<VulkanLogicOp>, Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptions ∧ d¬ s ∧ ds ∧ ¬ d0s¬ s¬ (s ⊕ d)¬ d¬ (s ∧ d)d¬ (s ∨ d)s ∨ d¬ s ∨ ds ∨ ¬ dall 1ss ⊕ d -
Method Summary
Modifier and TypeMethodDescriptionintvalue()static VulkanLogicOpReturns the enum constant of this class with the specified name.static VulkanLogicOp[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VK_LOGIC_OP_CLEAR
0 -
VK_LOGIC_OP_AND
s ∧ d -
VK_LOGIC_OP_AND_REVERSE
s ∧ ¬ d -
VK_LOGIC_OP_COPY
s -
VK_LOGIC_OP_AND_INVERTED
¬ s ∧ d -
VK_LOGIC_OP_NO_OP
d -
VK_LOGIC_OP_XOR
s ⊕ d -
VK_LOGIC_OP_OR
s ∨ d -
VK_LOGIC_OP_NOR
¬ (s ∨ d) -
VK_LOGIC_OP_EQUIVALENT
¬ (s ⊕ d) -
VK_LOGIC_OP_INVERT
¬ d -
VK_LOGIC_OP_OR_REVERSE
s ∨ ¬ d -
VK_LOGIC_OP_COPY_INVERTED
¬ s -
VK_LOGIC_OP_OR_INVERTED
¬ s ∨ d -
VK_LOGIC_OP_NAND
¬ (s ∧ d) -
VK_LOGIC_OP_SET
all 1s
-
-
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
-