Creates a rasterizer state object that informs the rasterizer stage how to behave and forces the sample count while UAV rendering or rasterizing.
public:
HRESULT CreateRasterizerState1(
const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
ID3D11RasterizerState1 **ppRasterizerState
)
pRasterizerDesc
Type: D3D11_RASTERIZER_DESC1 *
[in] A pointer to a D3D11_RASTERIZER_DESC1 structure that describes the rasterizer state.
ppRasterizerState
Type: ID3D11RasterizerState1 **
[out, optional] Address of a pointer to the ID3D11RasterizerState1 interface for the rasterizer state object created.
Type: HRESULT
This method returns E_OUTOFMEMORY if there is insufficient memory to create the rasterizer state object. See Direct3D 11 return codes for other possible return values.
An app can create up to 4096 unique rasterizer state objects. For each object created, the runtime checks to see if a previous object has the same state. If such a previous object exists, the runtime will return a pointer to previous instance instead of creating a duplicate object.
Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).