Files
XCEngine/docs/api/rhi/d3d12/texture/get-desc.md

31 lines
410 B
Markdown
Raw Normal View History

# D3D12Texture::GetDesc
获取纹理描述符。
```cpp
D3D12_RESOURCE_DESC GetDesc() const;
```
## 参数
## 返回值
`D3D12_RESOURCE_DESC` - D3D12 资源描述符
**线程安全:** ❌
**复杂度:** O(1)
## 示例
```cpp
D3D12Texture texture;
texture.Initialize(device, desc);
D3D12_RESOURCE_DESC resourceDesc = texture.GetDesc();
```
## 相关文档
- [D3D12Texture 总览](texture.md)