> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OMSetBlendFactor

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

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

## Syntax

```cpp theme={null}
void OMSetBlendFactor(
    const FLOAT  BlendFactor
)
```

### Parameters

*BlendFactor \[in, optional]*\
Type: const FLOAT \*

Array of blend factors, one for each RGBA component.

### Return value

Type: void

None.

## Remarks

If you created the blend-state object with [D3D12\_BLEND\_BLEND\_FACTOR](/reference/graphics/d3d12/enums/d3d12_blend_public) or **D3D12\_BLEND\_INV\_BLEND\_FACTOR**, then the blending stage uses the non-NULL array of blend factors. Otherwise,the blending stage doesn't use the non-NULL array of blend factors; the runtime stores the blend factors.

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

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[ID3D12GraphicsCommandList](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

- [D3D12_BLEND](/reference/graphics/d3d12/enums/d3d12_blend_public.md)
- [ClearState](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public.md)
- [D3D12_BLEND_DESC](/reference/graphics/d3d12/structs/d3d12_blend_desc_public.md)
- [D3D12_GRAPHICS_STATES](/reference/graphics/d3d12/enums/d3d12_graphics_states_public.md)
- [D3D12_RENDER_TARGET_BLEND_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_blend_desc_public.md)
