docs: update RHI API docs
This commit is contained in:
@@ -6,6 +6,16 @@ ID3D12CommandAllocator* GetCommandAllocator() const { return m_commandAllocator.
|
||||
|
||||
获取底层的 D3D12 命令分配器接口。
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12CommandAllocator allocator;
|
||||
if (allocator.Initialize(device)) {
|
||||
ID3D12CommandAllocator* native = allocator.GetCommandAllocator();
|
||||
// 使用原生 D3D12 接口
|
||||
}
|
||||
```
|
||||
|
||||
**返回:** `ID3D12CommandAllocator*`
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
Reference in New Issue
Block a user