22 lines
326 B
Markdown
22 lines
326 B
Markdown
|
|
# OpenGLCommandList::CopyResource
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void CopyResource(void* dst, void* src)
|
||
|
|
```
|
||
|
|
|
||
|
|
复制资源。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `dst` - 目标资源指针
|
||
|
|
- `src` - 源资源指针
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
commandList->CopyResource(dstTexture, srcTexture);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [OpenGLCommandList](command-list.md) - 返回类总览
|