docs: update RHI API docs
This commit is contained in:
26
docs/api/rhi/d3d12/common/get-sampler-descriptor-size.md
Normal file
26
docs/api/rhi/d3d12/common/get-sampler-descriptor-size.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# D3D12Common::GetSamplerDescriptorSize
|
||||
|
||||
```cpp
|
||||
inline UINT GetSamplerDescriptorSize(ID3D12Device* device)
|
||||
```
|
||||
|
||||
获取采样器(Sampler)的描述符大小。
|
||||
|
||||
**参数:**
|
||||
- `device` - D3D12 设备指针
|
||||
|
||||
**返回:** Sampler 描述符大小(字节)
|
||||
|
||||
**线程安全:** ✅(只读操作)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
ID3D12Device* device = ...;
|
||||
UINT samplerSize = GetSamplerDescriptorSize(device);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12Common 总览](common.md)
|
||||
- [GetCBV_SRV_UAVDescriptorSize](get-cbv-srv-uav-descriptor-size.md)
|
||||
Reference in New Issue
Block a user