Sign in to follow this  

How many TextureStates

This topic is 4381 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

How can I know “at runtime” how many TextureStates the graphic card will support? ? ?. Mine only seems to support 2.

Share this post


Link to post
Share on other sites
You can check the device caps to see how many stages are supported. MaxTextureBlendStages is the one you're looking for.

Share this post


Link to post
Share on other sites
Quote:
Original post by sirob
You can check the device caps to see how many stages are supported. MaxTextureBlendStages is the one you're looking for.


That defines the maximum number of stages. There is another caps, I believe MaxSimultaneousTextures that defines how many textures can be used in one draw call. Sometimes a card can handle 6 textures and 8 stages, like the Radeon 8500. Not every stage needs a separate texture, for example alpha blending can use one texture, in stage 1 apply it to the mesh for coloring and in stage 2 use it for alpha blending.

Share this post


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