Jump to content
  • Advertisement
Sign in to follow this  
ghostd0g

texturememory, read back pixels into main memory

This topic is 4158 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi folks, two short questions: 1. is there a standardized way to get the current amount of used texture memory (in total or for one gl context)? 2. how can i actually really read back pixelvalues (for further processing on the CPU) from gfx-mem to main memory? or is this even possible? thx in advance

Share this post


Link to post
Share on other sites
Advertisement
1. no, but it's possible to estimate if you calculate it yourself.
2. glGetTexImage

Share this post


Link to post
Share on other sites
@2 thanks man, how could i overlook that ...

@1 hmm, and is there a non standardized (just nvidia) way?
or how could i estimate it. do the drivers store the raw bytes + some overhead (how much?) or do they process (compress?) the uploaded images in some way (efficient mipmaps)?

[Edited by - ghostd0g on June 4, 2007 7:25:37 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!