Expand Minimize

D3D11_1_DDI_LOGIC_OP enumeration

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          = 0,
  D3D11_1_DDI_LOGIC_OP_SET            = 1,
  D3D11_1_DDI_LOGIC_OP_COPY           = 2,
  D3D11_1_DDI_LOGIC_OP_COPY_INVERTED  = 3,
  D3D11_1_DDI_LOGIC_OP_NOOP           = 4,
  D3D11_1_DDI_LOGIC_OP_INVERT         = 5,
  D3D11_1_DDI_LOGIC_OP_AND            = 6,
  D3D11_1_DDI_LOGIC_OP_NAND           = 7,
  D3D11_1_DDI_LOGIC_OP_OR             = 8,
  D3D11_1_DDI_LOGIC_OP_NOR            = 9,
  D3D11_1_DDI_LOGIC_OP_XOR            = 10,
  D3D11_1_DDI_LOGIC_OP_EQUIV          = 11,
  D3D11_1_DDI_LOGIC_OP_AND_REVERSE    = 12,
  D3D11_1_DDI_LOGIC_OP_AND_INVERTED   = 13,
  D3D11_1_DDI_LOGIC_OP_OR_REVERSE     = 14,
  D3D11_1_DDI_LOGIC_OP_OR_INVERTED    = 15
} D3D11_1_DDI_LOGIC_OP;

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 | d

D3D11_1_DDI_LOGIC_OP_NOR

~(s | 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 | ~d

D3D11_1_DDI_LOGIC_OP_OR_INVERTED

~s | 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

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

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft