I need to copy content of one texture2d to another (both stored in VRAM)? Is this even possible without using RTT or any additional RAM-VRAM transfers? Just pure BLIT between two textures in VRAM.

Thanks in advance! I am not able to figure it out.

有帮助吗?

解决方案

Using a RenderTarget does not remove the data from VRAM. It can be reused in a subsequent draw call as a texture without returning it to RAM. However, if you need to perform operations on it in code, like with getData(), then it will move out of video memory.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top