docs: 修复 D3D12 后端 API 文档问题
- 修复 texture/dtor.md 和 enums/enums.md 的错误链接 - 重命名 texture/ctor.md → constructor.md, texture/dtor.md → destructor.md - 创建 command-list, fence, device, query-heap, sampler 的 constructor/destructor 文档 - 创建 D3D12Texture 缺失的 16 个方法文档 - 创建 D3D12CommandList 缺失的 12 个 internal 方法文档 - 补充 shader-resource-view 缺少的头文件和类型字段
This commit is contained in:
32
docs/api/rhi/d3d12/command-list/set-index-buffer-internal.md
Normal file
32
docs/api/rhi/d3d12/command-list/set-index-buffer-internal.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# D3D12CommandList::SetIndexBufferInternal
|
||||
|
||||
设置索引缓冲区内部实现。
|
||||
|
||||
```cpp
|
||||
void SetIndexBufferInternal(ID3D12Resource* buffer, uint64_t offset, Format indexFormat);
|
||||
```
|
||||
|
||||
## 参数
|
||||
|
||||
- `buffer` - D3D12 资源指针
|
||||
- `offset` - 缓冲区偏移
|
||||
- `indexFormat` - 索引格式
|
||||
|
||||
## 返回值
|
||||
|
||||
无
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
commandList.SetIndexBufferInternal(indexBuffer.GetResource(), 0, Format::R16_UINT);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12CommandList 总览](command-list.md)
|
||||
- [SetIndexBuffer](set-index-buffer.md) - 设置索引缓冲区
|
||||
Reference in New Issue
Block a user