docs: update RHI API docs
This commit is contained in:
@@ -24,6 +24,14 @@ O(1)
|
||||
D3D12_CPU_DESCRIPTOR_HANDLE handle = srv->GetCPUDescriptorHandle();
|
||||
```
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12_CPU_DESCRIPTOR_HANDLE handle = srv->GetCPUDescriptorHandle();
|
||||
// 用于绑定到命令列表
|
||||
commandList->SetGraphicsRootDescriptorTable(0, handle);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12ShaderResourceView](shader-resource-view.md) - 类总览
|
||||
|
||||
Reference in New Issue
Block a user