如何快速复制纹理? [英] How can i copy textures fast?

查看:98
本文介绍了如何快速复制纹理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以快速复制纹理而无需在渲染目标纹理和动态纹理之间锁定矩形?

当目标是动态纹理时,StretchRect不起作用.
如果目标纹理具有D3DPOOL_DEFAULT,则UpdateTexture不起作用.
DXSurfacetoSurface(不记得正确的函数名)工作缓慢.

Is there any way to copy textures fast without locking rectangles between render target texture and dynamic texture?

StretchRect does not work, when the target is dynamic texture.
UpdateTexture does not work, if the target texture has D3DPOOL_DEFAULT.
DXSurfacetoSurface (do not remember right function name) works slow.

推荐答案

所有数据都应存储在动态纹理中,然后才能拉伸.
All data should be stored in dynamic texture and then i can be stretched.


这篇关于如何快速复制纹理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆