ID3D11Device1::CreateBlendState1 Method

Creates a blend-state object that encapsulates blend state for the output-merger stage and allows the configuration of logic operations.

Syntax

public:
HRESULT CreateBlendState1(
         const D3D11_BLEND_DESC1 *pBlendStateDesc,
         ID3D11BlendState1 **ppBlendState
)  

Parameters

pBlendStateDesc
Type: D3D11_BLEND_DESC1 *

[in] A pointer to a D3D11_BLEND_DESC1 structure that describes blend state.

ppBlendState
Type: ID3D11BlendState1 **

[out, optional] Address of a pointer to the ID3D11BlendState1 interface for the blend-state object created.

Return value

Type: HRESULT 

This method returns E_OUTOFMEMORY if there is insufficient memory to create the blend-state object. See Direct3D 11 return codes for other possible return values.

Remarks

An app 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

Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11Device1

ID3D11Device1 Members