Create a rasterizer state object that tells the rasterizer stage how to behave.
public:
HRESULT CreateRasterizerState(
const D3D11_RASTERIZER_DESC *pRasterizerDesc,
ID3D11RasterizerState **ppRasterizerState
)
pRasterizerDesc
Type: D3D11_RASTERIZER_DESC *
[in] Pointer to a rasterizer state description (see D3D11_RASTERIZER_DESC).
ppRasterizerState
Type: ID3D11RasterizerState **
[out, optional] Address of a pointer to the rasterizer state object created (see ID3D11RasterizerState).
Type: HRESULT
This method returns E_OUTOFMEMORY if there is insufficient memory to create the compute shader. See Direct3D 11 return codes for other possible return values.
4096 unique rasterizer state objects can be created on a device at a time.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).