Detailed Description
A collection of helper functions for working with state objects, such as blend state, rasterizer state and depth/stencil state.
Function Documentation
ID3D11BlendState_ptr tk11::create_blend_state |
( |
ID3D11Device_ptr |
device, |
|
|
const D3D11_BLEND_DESC & |
desc | |
|
) |
| | |
Create Direct3D 11 blend state.
Creates a blend state object based on a description. If creation of the object fails, an exception is thrown.
- Parameters:
-
| device | Interface of Direct3D device |
| desc | Description of the state object to create |
- Returns:
- Interface of the created state object
- Exceptions:
-
- Examples:
- input.cpp.
ID3D11DepthStencilState_ptr tk11::create_depth_stencil_state |
( |
ID3D11Device_ptr |
device, |
|
|
const D3D11_DEPTH_STENCIL_DESC & |
desc | |
|
) |
| | |
Create Direct3D 11 depth/stencil state.
Creates a rasterizer state object based on a description. If creation of the object fails, an exception is thrown.
- Parameters:
-
| device | Interface of Direct3D device |
| desc | Description of the state object to create |
- Returns:
- Interface of the created state object
- Exceptions:
-
- See also:
- D3D11_Depth_Stencil_Desc
ID3D11RasterizerState_ptr tk11::create_rasterizer_state |
( |
ID3D11Device_ptr |
device, |
|
|
const D3D11_RASTERIZER_DESC & |
desc | |
|
) |
| | |
Create Direct3D 11 rasterizer state.
Creates a depth/stencil state object based on a description. If creation of the object fails, an exception is thrown.
- Parameters:
-
| device | Interface of Direct3D device |
| desc | Description of the state object to create |
- Returns:
- Interface of the created state object
- Exceptions:
-
- See also:
- D3D11_Rasterizer_Desc
- Examples:
- torus.cpp.