Vireo  0.0
Vireo 3D Rendering Hardware Interface
LogicOp Enum Referenceenum

Detailed Description

Bitwise logical operation applied to color attachment values (enabled via logic_op_enable).

Lua full name: vireo.LogicOp

Constants

integer CLEAR
 Result = 0.
 
integer SET
 Result = 1.
 
integer COPY
 Result = Src.
 
integer COPY_INVERTED
 Result = ~Src.
 
integer NOOP
 Result = Dst (no-op).
 
integer INVERT
 Result = ~Dst.
 
integer AND
 Result = Src & Dst.
 
integer NAND
 Result = ~(Src & Dst).
 
integer OR
 Result = Src | Dst.
 
integer NOR
 Result = ~(Src | Dst).
 
integer XOR
 Result = Src ^ Dst.
 
integer EQUIV
 Result = ~(Src ^ Dst).
 
integer AND_REVERSE
 Result = Src & ~Dst.
 
integer AND_INVERTED
 Result = ~Src & Dst.
 
integer OR_REVERSE
 Result = Src | ~Dst.
 
integer OR_INVERTED
 Result = ~Src | Dst.
 

Enumerator Documentation

integer CLEAR

Result = 0.

integer SET

Result = 1.

integer COPY

Result = Src.

integer COPY_INVERTED

Result = ~Src.

integer NOOP

Result = Dst (no-op).

integer INVERT

Result = ~Dst.

integer AND

Result = Src & Dst.

integer NAND

Result = ~(Src & Dst).

integer OR

Result = Src | Dst.

integer NOR

Result = ~(Src | Dst).

integer XOR

Result = Src ^ Dst.

integer EQUIV

Result = ~(Src ^ Dst).

integer AND_REVERSE

Result = Src & ~Dst.

integer AND_INVERTED

Result = ~Src & Dst.

integer OR_REVERSE

Result = Src | ~Dst.

integer OR_INVERTED

Result = ~Src | Dst.