Expand Minimize

ID3D10Device::CreateRasterizerState method

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

Syntax


HRESULT CreateRasterizerState(
  [in]   const D3D10_RASTERIZER_DESC *pRasterizerDesc,
  [out]  ID3D10RasterizerState **ppRasterizerState
);

Parameters

pRasterizerDesc [in]

Type: const D3D10_RASTERIZER_DESC*

Pointer to a rasterizer state description (see D3D10_RASTERIZER_DESC).

ppRasterizerState [out]

Type: ID3D10RasterizerState**

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

Return value

Type: HRESULT

This method returns one of the following Direct3D 10 Return Codes.

Remarks

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

If an application attempts to create a rasterizer state with the same description as an already existing rasterizer state, then the same interface with an incremented reference count will be returned and the total number of unique rasterizer state objects will stay the same.

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10Device Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft