- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
1.6 KiB
1.6 KiB
RHICommandQueue
命名空间: XCEngine::RHI
类型: class (abstract)
描述: GPU 命令队列抽象接口,负责提交和执行命令列表,以及 GPU/CPU 同步。
公共方法
| 方法 | 描述 |
|---|---|
Shutdown |
关闭并释放资源 |
ExecuteCommandLists |
执行命令列表 |
Signal |
信号栅栏 |
Wait |
等待栅栏 |
GetCompletedValue |
获取完成值 |
WaitForIdle |
等待空闲 |
GetType |
获取队列类型 |
GetTimestampFrequency |
获取时间戳频率 |
GetNativeHandle |
获取原生句柄 |
命令队列类型 (CommandQueueType)
| 枚举值 | 描述 |
|---|---|
Direct |
直接队列,用于图形和计算命令 |
Compute |
计算队列,专门用于计算着色器 |
Copy |
复制队列,专门用于资源复制 |
使用示例
CommandQueueDesc queueDesc;
queueDesc.queueType = (uint32_t)CommandQueueType::Direct;
RHICommandQueue* commandQueue = device->CreateCommandQueue(queueDesc);
FenceDesc fenceDesc;
RHIFence* fence = device->CreateFence(fenceDesc);
commandQueue->ExecuteCommandLists(1, (void**)&commandList);
commandQueue->Signal(fence, 1);
fence->Wait(1);
相关文档
- ../rhi/rhi.md - RHI 模块总览
- RHICommandList - 命令列表
- RHIFence - 同步栅栏