Files
XCEngine/docs/api/rhi/d3d12/texture/owns-resource.md
ssdfasd 1358bb0a5a 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 缺少的头文件和类型字段
2026-03-22 02:08:51 +08:00

33 lines
474 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# D3D12Texture::OwnsResource
检查是否拥有资源所有权。
```cpp
bool OwnsResource() const;
```
## 参数
## 返回值
`bool` - 如果拥有资源所有权返回 true否则返回 false
**线程安全:**
**复杂度:** O(1)
## 示例
```cpp
D3D12Texture texture;
texture.Initialize(device, desc);
if (texture.OwnsResource()) {
// 纹理拥有资源所有权,需要负责释放
}
```
## 相关文档
- [D3D12Texture 总览](texture.md)