PDA

View Full Version : Copying Data from rendertarget to normal texture


vinartrulz
04-May-2008, 14:17
Hi..
Data inside RenderTargets, created in default pool cannot be copied to normal textures created in managed pool???
StretchRect says
The source and destination surfaces must be created in the default memory pool.
UpdateTexture says
The source texture must be in system memory
Is there any other API tat can be used or its an impossible task
Thanks

Anarchist4000
09-May-2008, 10:57
Managed can be either system or video memory. To actually render anything efficiently both must be in video memory. If you plan on rendering to a surface and using that for a texture you might as well leave it as default instead of managed anyways.

Even for textures in the default pool you can still dump them to sysmem but it's not very fast.