> ## 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.

# ID3D12Fence::Signal

> 将围栏设置为指定值。

将围栏设置为指定值。

## 语法

```cpp theme={null}
HRESULT Signal(
    UINT64 Value
)
```

### 参数

*Value*\
类型：UINT64

要将围栏设置为的值。

### 返回值

类型：HRESULT

此方法返回其中一个 [Direct3D 12 返回代码](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12-graphics-reference-returnvalues)。

## 备注

使用此方法从 CPU 端设置围栏值。使用 [ID3D12CommandQueue::Signal](/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_signal_public) 从 GPU 端设置围栏。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[ID3D12Fence](/reference/graphics/d3d12/interfaces/id3d12fence/id3d12fence_public)

[多引擎同步](https://learn.microsoft.com/en-us/windows/win32/direct3d12/user-mode-heap-synchronization)
