PDA

View Full Version : Texture Format Recognition



jtipton
02-28-2007, 09:33 AM
I am trying to dynamically figure out if a requested texture format will be honored or translated into something else. I attempted this with proxy targets, but that does not seem to work. I simply get back whatever I put in. My backup plan is to generate a table for each of our know cards. I am currently referencing this site:

http://download.nvidia.com/developer/OpenGL_Texture_Formats/nv_ogl_texture_formats.pdf

This is the type of data I am looking for. However, it does not have my graphics family referenced in this document (GeForce 7600).

So, does anybody know where I can find info for the GeForce 7600 (supported formats)?

Does anybody have a dynamic way of determining explicit format support?

Michael Gold
02-28-2007, 10:39 AM
If you query the internalformat of a proxy, you will get exactly what you requested. If you query the TEXTURE_RED_SIZE, etc via GetTexLevelParameter, you can determined whether and how your internalformat request was actually translated.

Zengar
02-28-2007, 11:01 AM
It is the same as for the 6xxx series

jtipton
02-28-2007, 11:09 AM
Works Great. Thanks.