문제

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