I tried the bufferimage functions you pointed out the last time, they were very interesting, thanks again.
Finally, I wrote a DLL that writes to an ImageBuffer.
Reading from an Imagebuffer is slow, however writing to it is fast. Maybe a graphic card is optimized for uploading data?
I used this technique to write a scaleimage .DLL, it is here: http://www.codersworkshop.com/viewshowcase.php?id=911
I think the zbuffer is a DirectDrawSurface:
http://externalweb.exhedra.com/DirectX4VB/Tutorials/DirectX7/IM_ZBuffer.asp
And I think the frontbuffer and backbuffer are ddsurfaces as well. Indeed they have a fair chance of being on the VRAM, unless you have an old graphic card.
Now if the ZBuffer is a surface, would it be possible to replace it with an ImageBuffer ?
Finally, I wrote a DLL that writes to an ImageBuffer.
Reading from an Imagebuffer is slow, however writing to it is fast. Maybe a graphic card is optimized for uploading data?
I used this technique to write a scaleimage .DLL, it is here: http://www.codersworkshop.com/viewshowcase.php?id=911
I think the zbuffer is a DirectDrawSurface:
http://externalweb.exhedra.com/DirectX4VB/Tutorials/DirectX7/IM_ZBuffer.asp
And I think the frontbuffer and backbuffer are ddsurfaces as well. Indeed they have a fair chance of being on the VRAM, unless you have an old graphic card.
Now if the ZBuffer is a surface, would it be possible to replace it with an ImageBuffer ?