ID3D10Device::CreateBlendState method (d3d10.h)

Create a blend-state object that encapsulates blend state for the output-merger stage.

Syntax

HRESULT CreateBlendState(
  [in]  const D3D10_BLEND_DESC *pBlendStateDesc,
  [out] ID3D10BlendState       **ppBlendState
);

Parameters

[in] pBlendStateDesc

Type: const D3D10_BLEND_DESC*

Pointer to a blend-state description (see D3D10_BLEND_DESC).

[out] ppBlendState

Type: ID3D10BlendState**

Address of a pointer to the blend-state object created (see ID3D10BlendState Interface).

Return value

Type: HRESULT

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

Remarks

An application can create up to 4096 unique blend-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
Target Platform Windows
Header d3d10.h
Library D3D10.lib

See also

ID3D10Device Interface