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