ID3D11Device3::CreateRasterizerState2 method

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(
  const D3D11_RASTERIZER_DESC2 *pRasterizerDesc,
  ID3D11RasterizerState2       **ppRasterizerState
);

Parameters

pRasterizerDesc

Type: const D3D11_RASTERIZER_DESC2*

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

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

   
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