31 lines
496 B
Markdown
31 lines
496 B
Markdown
|
|
# D3D12CommandList::CopyResourceInternal
|
||
|
|
|
||
|
|
复制资源内部实现。
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void CopyResourceInternal(ID3D12Resource* dst, ID3D12Resource* src);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 参数
|
||
|
|
|
||
|
|
- `dst` - 目标资源
|
||
|
|
- `src` - 源资源
|
||
|
|
|
||
|
|
## 返回值
|
||
|
|
|
||
|
|
无
|
||
|
|
|
||
|
|
**线程安全:** ❌
|
||
|
|
|
||
|
|
**复杂度:** O(n)
|
||
|
|
|
||
|
|
## 示例
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
commandList.CopyResourceInternal(dstResource.GetResource(), srcResource.GetResource());
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [D3D12CommandList 总览](command-list.md)
|
||
|
|
- [CopyResource](copy-resource.md) - 复制资源
|