Re: GL_MAX_TEXTURE_UNITS_ARB on a Geforce 7900

"S.I.M. van Keulen" <[email protected]> Tue, 10 Jul 2007 07:00:23 -0800
Newsgroups gmane.games.devel.opengl
Organization Fat City Network Services, San Diego, California
Message-ID <[email protected]>


  Can anyone explain why an nVidia 7900GS (driver version 91.45) reports only 4 texture units from GL_MAX_TEXTURE_UNITS_ARB?

Because that is the maximum amount of texture units it supports in the static OpenGL implementation.
For shaders different limits apply.
The amount of texture units available in the fragment shader can be queried with GL_MAX_TEXTURE_IMAGE_UNITS
For the vertex shader query GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS

Regards

Serge van Keulen


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Organic Vectory
URL:      www.OrganicVectory.com

Disclaimer
"The information contained in this email is confidential and may contain proprietary information. It is meant solely for the intended recipient. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted in reliance on this, is prohibited and may be unlawful. No liability or responsibility is accepted if information or data is, for whatever reason corrupted or does not reach its intended recipient. No warranty is given that this email is free of viruses." van Keulen