Sign in to follow this  

Read float from video memory

Recommended Posts

Hi all ! I have to 'download' a small texture from the video memory, and read it. Problem is that the texture is float, like D3DFMT_G16R16F or D3DFMT_R16F. The first annoying problem is that i can't use CreateOffscreenPlainSurface with D3DFMT_R16F and D3DPOOL_SYSTEMMEM. Does someone know why ? But the big problem is, how do I interpret the raw bytes ? I can copy the data into a buffer, but once there, how can I read the FLOAT values ? THANKS

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this