ID3D11Device::CreateRasterizerState method (d3d11.h)

Create a rasterizer state object that tells the rasterizer stage how to behave.

Syntax

HRESULT CreateRasterizerState(
  [in]            const D3D11_RASTERIZER_DESC *pRasterizerDesc,
  [out, optional] ID3D11RasterizerState       **ppRasterizerState
);

Parameters

[in] pRasterizerDesc

Type: const D3D11_RASTERIZER_DESC*

Pointer to a rasterizer state description (see D3D11_RASTERIZER_DESC).

[out, optional] ppRasterizerState

Type: ID3D11RasterizerState**

Address of a pointer to the rasterizer state object created (see ID3D11RasterizerState).

Return value

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.

Remarks

4096 unique rasterizer state objects can be created on a device at a time.

If an application attempts to create a rasterizer-state interface with the same state as an existing interface, the same interface will be returned and the total number of unique rasterizer state objects will stay the same.

Requirements

Requirement Value
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See also

ID3D11Device