Files
XCEngine/docs/api/rhi/fence/fence.md
ssdfasd b46d450429 Fix RHI documentation discrepancies
Fixed the following issues:
- command-list.md: Shutdown linked to threading/task-system instead of local shutdown.md
- fence.md: Wait linked to threading/task-group instead of local wait.md
- factory/create-rhi-device-string.md: Claimed Vulkan/Metal support but source doesn't support them
- opengl/buffer/buffer.md: GetType linked to command-queue/get-type (wrong type)
- d3d12/device/device.md: Initialize/Shutdown linked to threading/task-system
- d3d12/command-list/command-list.md: Initialize/Shutdown/Reset/Close/Clear linked to wrong docs
- d3d12/texture/texture.md: Initialize/Shutdown linked to threading/task-system
- opengl/command-list/command-list.md: Shutdown linked to threading/task-system
- opengl/device/device.md: GetNativeHandle incorrectly linked to get-window.md

All links validated with fix_links.py - no broken references remaining.
2026-03-19 01:23:10 +08:00

938 B

RHIFence

命名空间: XCEngine::RHI

类型: class (abstract)

描述: GPU 同步栅栏抽象接口,用于 GPU/CPU 同步和跨队列同步。

公共方法

生命周期

方法 文档
Shutdown 详细文档

同步操作

方法 文档
Signal 详细文档
Wait 详细文档
GetCompletedValue 详细文档
IsSignaled 详细文档

其他

方法 文档
GetNativeHandle 详细文档

使用示例

FenceDesc desc;
desc.initialValue = 0;
RHIFence* fence = device->CreateFence(desc);

commandQueue->Signal(fence, 1);
fence->Wait(1);

相关文档