how to copy an offscreen(created in vedio mem)
as we know that API(UpdateSurface) can do it, but the surface must be created
in system memery.
so how to do it if the surface was created in vedio mem?
Thanks!
Try IDirect3DDevice9::GetRenderTargetData to copy data from device memory to system memory, or D3DXLoadSurfaceFromSurface if you need some color convertion.
In case of locable surfaces you can call IDirect3DSurface9::LockRect to obtain direct access to surface data and copy them as you wish.
In case of locable surfaces you can call IDirect3DSurface9::LockRect to obtain direct access to surface data and copy them as you wish.
Quote:Original post by hound
Try IDirect3DDevice9::GetRenderTargetData to copy data from device memory to system memory, or D3DXLoadSurfaceFromSurface if you need some color convertion.
In case of locable surfaces you can call IDirect3DSurface9::LockRect to obtain direct access to surface data and copy them as you wish.
----can you give me some codes using api?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement