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

31 lines
368 B
Markdown
Raw Normal View History

# D3D12Texture::GetFormat
获取纹理格式。
```cpp
Format GetFormat() const override;
```
## 参数
## 返回值
`Format` - 纹理格式
**线程安全:** ❌
**复杂度:** O(1)
## 示例
```cpp
D3D12Texture texture;
texture.Initialize(device, desc);
Format format = texture.GetFormat();
```
## 相关文档
- [D3D12Texture 总览](texture.md)