Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11Device::CreateRasterizerState method

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

Syntax


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

Parameters

pRasterizerDesc [in]

Type: const D3D11_RASTERIZER_DESC*

Pointer to a rasterizer state description (see D3D11_RASTERIZER_DESC).

ppRasterizerState [out]

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.

Windows Phone 8: This API is supported.

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11Device

 

 

Community Additions

Show:
© 2014 Microsoft