Skip to main content
Sets the fence to the specified value.

Syntax

Parameters

Value
Type: UINT64
The value to set the fence to.

Return value

Type: HRESULT This method returns one of the Direct3D 12 Return Codes.

Remarks

Use this method to set a fence value from the CPU side. Use ID3D12CommandQueue::Signal to set a fence from the GPU side.

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

ID3D12Fence Multi-engine synchronization
Last modified on August 20, 2026