ID3D11Device3::CreateRasterizerState2 method (d3d11_3.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 CreateRasterizerState2(
  [in]            const D3D11_RASTERIZER_DESC2 *pRasterizerDesc,
  [out, optional] ID3D11RasterizerState2       **ppRasterizerState
);

Parameters

[in] pRasterizerDesc

Type: const D3D11_RASTERIZER_DESC2*

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

[out, optional] ppRasterizerState

Type: ID3D11RasterizerState2**

A pointer to a memory block that receives a pointer to a ID3D11RasterizerState2 interface for the created rasterizer state object. Set this parameter to NULL to validate the other input parameters (the method will return S_FALSE if the other input parameters pass validation).

Return value

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.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header d3d11_3.h
Library D3D11.lib

See also

ID3D11Device3