D3D10_BLEND Enumeration
Blend options. A blend option identifies the data source and an optional pre-blend operation.
Syntax
typedef enum D3D10_BLEND { D3D10_BLEND_ZERO = 1, D3D10_BLEND_ONE = 2, D3D10_BLEND_SRC_COLOR = 3, D3D10_BLEND_INV_SRC_COLOR = 4, D3D10_BLEND_SRC_ALPHA = 5, D3D10_BLEND_INV_SRC_ALPHA = 6, D3D10_BLEND_DEST_ALPHA = 7, D3D10_BLEND_INV_DEST_ALPHA = 8, D3D10_BLEND_DEST_COLOR = 9, D3D10_BLEND_INV_DEST_COLOR = 10, D3D10_BLEND_SRC_ALPHA_SAT = 11, D3D10_BLEND_BLEND_FACTOR = 14, D3D10_BLEND_INV_BLEND_FACTOR = 15, D3D10_BLEND_SRC1_COLOR = 16, D3D10_BLEND_INV_SRC1_COLOR = 17, D3D10_BLEND_SRC1_ALPHA = 18, D3D10_BLEND_INV_SRC1_ALPHA = 19 } D3D10_BLEND;
Constants
- D3D10_BLEND_ZERO
-
The data source is the color black (0, 0, 0, 0). No pre-blend operation.
- D3D10_BLEND_ONE
-
The data source is the color white (1, 1, 1, 1). No pre-blend operation.
- D3D10_BLEND_SRC_COLOR
-
The data source is color data (RGB) from a pixel shader. No pre-blend operation.
- D3D10_BLEND_INV_SRC_COLOR
-
The data source is color data (RGB) from a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB.
- D3D10_BLEND_SRC_ALPHA
-
The data source is alpha data (A) from a pixel shader. No pre-blend operation.
- D3D10_BLEND_INV_SRC_ALPHA
-
The data source is alpha data (A) from a pixel shader. The pre-blend operation inverts the data, generating 1 - A.
- D3D10_BLEND_DEST_ALPHA
-
The data source is alpha data from a rendertarget. No pre-blend operation.
- D3D10_BLEND_INV_DEST_ALPHA
-
The data source is alpha data from a rendertarget. The pre-blend operation inverts the data, generating 1 - A.
- D3D10_BLEND_DEST_COLOR
-
The data source is color data from a rendertarget. No pre-blend operation.
- D3D10_BLEND_INV_DEST_COLOR
-
The data source is color data from a rendertarget. The pre-blend operation inverts the data, generating 1 - RGB.
- D3D10_BLEND_SRC_ALPHA_SAT
-
The data source is alpha data from a pixel shader. The pre-blend operation clamps the data to 1 or less.
- D3D10_BLEND_BLEND_FACTOR
-
The data source is the blend factor set with ID3D10Device::OMSetBlendState. No pre-blend operation.
- D3D10_BLEND_INV_BLEND_FACTOR
-
The data source is the blend factor set with ID3D10Device::OMSetBlendState. The pre-blend operation inverts the blend factor, generating 1 - blend_factor.
- D3D10_BLEND_SRC1_COLOR
-
The data sources are both color data output by a pixel shader. There is no pre-blend operation. This options supports dual-source color blending.
- D3D10_BLEND_INV_SRC1_COLOR
-
The data sources are both color data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB. This options supports dual-source color blending.
- D3D10_BLEND_SRC1_ALPHA
-
The data sources are alpha data output by a pixel shader. There is no pre-blend operation. This options supports dual-source color blending.
- D3D10_BLEND_INV_SRC1_ALPHA
-
The data sources are alpha data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - A. This options supports dual-source color blending.
Remarks
Blend operations are specified in a blend description.
Requirements
Header |
D3D10.h |
---|---|
Library |
D3D10.lib |
'Study > Directx 10' 카테고리의 다른 글
D3D10_SHADER Constants (0) | 2010.05.30 |
---|---|
D3D10_BLEND_OP Enumeration (0) | 2010.05.30 |
RasterizerStateMesh (0) | 2010.05.24 |
x파일 로딩 (0) | 2010.05.23 |
메쉬에 맵핑 (0) | 2010.05.23 |