D3D10_BLEND_OP Enumeration

반응형
D3D10_BLEND_OP Enumeration

RGB or alpha blending operation.

Syntax

typedef enum D3D10_BLEND_OP {
  D3D10_BLEND_OP_ADD            = 1,
  D3D10_BLEND_OP_SUBTRACT       = 2,
  D3D10_BLEND_OP_REV_SUBTRACT   = 3,
  D3D10_BLEND_OP_MIN            = 4,
  D3D10_BLEND_OP_MAX            = 5 
} D3D10_BLEND_OP;

Constants

D3D10_BLEND_OP_ADD

Add source 1 and source 2.

D3D10_BLEND_OP_SUBTRACT

Subtract source 1 from source 2.

D3D10_BLEND_OP_REV_SUBTRACT

Subtract source 2 from source 1.

D3D10_BLEND_OP_MIN

Find the minimum of source 1 and source 2.

D3D10_BLEND_OP_MAX

Find the maximum of source 1 and source 2.

Remarks

The runtime implements RGB blending and alpha blending separately. Therefore, blend state requires separate blend operations for RGB data and alpha data. These blend operations are specified in a blend description. The two sources — Source 1, called SrcBlend and SrcBlendAlpha, and Source 2, called DestBlend and DestBlendAlpha — are shown in the blending block diagram.

Requirements

Header

D3D10.h

Library

D3D10.lib

'Study > Directx 10' 카테고리의 다른 글

깊이와 스텐실  (0) 2010.06.01
D3D10_SHADER Constants  (0) 2010.05.30
D3D10_BLEND Enumeration  (0) 2010.05.30
RasterizerStateMesh  (0) 2010.05.24
x파일 로딩  (0) 2010.05.23
TAGS.

Comments