ID3D11Device1::CreateRasterizerState1 method (d3d11_1.h)

Creates a rasterizer state object that informs the rasterizer stage how to behave and forces the sample count while UAV rendering or rasterizing.

Syntax

HRESULT CreateRasterizerState1(
  [in]            const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  [out, optional] ID3D11RasterizerState1       **ppRasterizerState
);

Parameters

[in] pRasterizerDesc

A pointer to a D3D11_RASTERIZER_DESC1 structure that describes the rasterizer state.

[out, optional] ppRasterizerState

Address of a pointer to the ID3D11RasterizerState1 interface for the rasterizer state object created.

Return value

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.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11_1.h
Library D3D11.lib

See also

ID3D11Device1