ID3D12GraphicsCommandList::OMSetBlendFactor method

Sets the blend factor that modulate values for a pixel shader, render target, or both.

Syntax


void OMSetBlendFactor(
  [in, optional] const FLOAT BlendFactor[4]
);

Parameters

BlendFactor [in, optional]

Type: const FLOAT[4]

Array of blend factors, one for each RGBA component.

Return value

This method does not return a value.

Remarks

If you created the blend-state object with D3D11_BLEND_BLEND_FACTOR or D3D11_BLEND_INV_BLEND_FACTOR, the blending stage uses the non-NULL array of blend factors.

If you didn't create the blend-state object with D3D11_BLEND_BLEND_FACTOR or D3D11_BLEND_INV_BLEND_FACTOR, the blending stage does not use the non-NULL array of blend factors; the runtime stores the blend factors.

If you pass NULL, the runtime uses or stores a blend factor equal to { 1, 1, 1, 1 }.

D3D11_BLEND_BLEND_FACTOR and D3D11_BLEND_INV_BLEND_FACTOR are D3D12_BLEND enumeration constants.

Requirements

Header

D3d12.h

Library

D3d12.lib

DLL

D3d12.dll

See also

ID3D12GraphicsCommandList

 

 

Show: