Fixed broken references: - texture-import-settings: Fix 16 files referencing wrong overview filename - math/rectint: Fix 9 method links (rectint-* → get*, contains, intersects) - rhi/opengl/device: Fix 8 cross-references (opengl-* → */**) - resources/mesh: Fix meshsection and vertexattribute links - rhi/d3d12/sampler: Fix RHISampler reference path - math/vector3: Fix projectonplane → project-on-plane - rhi/opengl/command-list: Remove broken ClearFlag enum ref - rhi/opengl/device: Create 2 new method docs (MakeContextCurrent, GetNativeContext) - rhi/device: Fix device-info types reference All 0 broken references remaining.
46 lines
947 B
Markdown
46 lines
947 B
Markdown
# OpenGLDevice::CreateCommandQueue
|
|
|
|
```cpp
|
|
RHICommandQueue* CreateCommandQueue(const CommandQueueDesc& desc) override
|
|
```
|
|
|
|
创建 OpenGL 命令队列对象。
|
|
|
|
## 详细描述
|
|
|
|
创建用于管理命令列表提交的命令队列。
|
|
|
|
### OpenGL 实现
|
|
|
|
当前实现创建 `OpenGLCommandQueue`,用于:
|
|
- 命令列表提交
|
|
- 命令同步
|
|
|
|
## 参数
|
|
|
|
- `desc` - 命令队列描述符
|
|
|
|
## 返回值
|
|
|
|
`RHICommandQueue*` - 创建的命令队列指针
|
|
|
|
## 注意事项
|
|
|
|
- 返回的命令队列对象归调用者所有,需自行管理生命周期
|
|
- OpenGL 本身没有显式的命令队列概念,此为抽象接口实现
|
|
|
|
## 示例
|
|
|
|
```cpp
|
|
CommandQueueDesc queueDesc;
|
|
RHICommandQueue* queue = device.CreateCommandQueue(queueDesc);
|
|
|
|
// 提交命令列表到队列
|
|
queue->ExecuteCommandList(cmdList);
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [OpenGLDevice](device.md) - 类总览
|
|
- [OpenGLCommandQueue](../command-queue/command-queue.md) - OpenGL 命令队列实现
|