D3D11_1_DDI_LOGIC_OP enumeration (d3d10umddi.h)

Indicates shader logic operations used in a blend state. In the following notation, the output value of each logic operation is given in terms of these values:

  • s is the pixel shader output
  • d is the contents of the render target view (RTV)

Syntax

typedef enum D3D11_1_DDI_LOGIC_OP {
  D3D11_1_DDI_LOGIC_OP_CLEAR,
  D3D11_1_DDI_LOGIC_OP_SET,
  D3D11_1_DDI_LOGIC_OP_COPY,
  D3D11_1_DDI_LOGIC_OP_COPY_INVERTED,
  D3D11_1_DDI_LOGIC_OP_NOOP,
  D3D11_1_DDI_LOGIC_OP_INVERT,
  D3D11_1_DDI_LOGIC_OP_AND,
  D3D11_1_DDI_LOGIC_OP_NAND,
  D3D11_1_DDI_LOGIC_OP_OR,
  D3D11_1_DDI_LOGIC_OP_NOR,
  D3D11_1_DDI_LOGIC_OP_XOR,
  D3D11_1_DDI_LOGIC_OP_EQUIV,
  D3D11_1_DDI_LOGIC_OP_AND_REVERSE,
  D3D11_1_DDI_LOGIC_OP_AND_INVERTED,
  D3D11_1_DDI_LOGIC_OP_OR_REVERSE,
  D3D11_1_DDI_LOGIC_OP_OR_INVERTED
} ;

Constants

 
D3D11_1_DDI_LOGIC_OP_CLEAR
0
D3D11_1_DDI_LOGIC_OP_SET
1
D3D11_1_DDI_LOGIC_OP_COPY
s
D3D11_1_DDI_LOGIC_OP_COPY_INVERTED
~s
D3D11_1_DDI_LOGIC_OP_NOOP
d
D3D11_1_DDI_LOGIC_OP_INVERT
~d
D3D11_1_DDI_LOGIC_OP_AND
s AND d
D3D11_1_DDI_LOGIC_OP_NAND
~(s AND d)
D3D11_1_DDI_LOGIC_OP_OR
s OR d
D3D11_1_DDI_LOGIC_OP_NOR
~(s OR d)
D3D11_1_DDI_LOGIC_OP_XOR
s ^ d
D3D11_1_DDI_LOGIC_OP_EQUIV
~(s ^ d)
D3D11_1_DDI_LOGIC_OP_AND_REVERSE
s AND ~d
D3D11_1_DDI_LOGIC_OP_AND_INVERTED
~s AND d
D3D11_1_DDI_LOGIC_OP_OR_REVERSE
s OR ~d
D3D11_1_DDI_LOGIC_OP_OR_INVERTED
~s OR d

Remarks

The D3D11_1_DDI_LOGIC_OP blend state logic operations are specified by the D3D11_1_DDI_BLEND_DESC.LogicOp member in a call to the CreateBlendState(D3D11_1) function.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header d3d10umddi.h (include D3d10umddi.h)

See also

CreateBlendState(D3D11_1)

D3D11_1_DDI_BLEND_DESC