How many TextureStates

Started by
1 comment, last by Fidelio66 18 years, 3 months ago
How can I know “at runtime” how many TextureStates the graphic card will support? ? ?. Mine only seems to support 2.
Advertisement
You can check the device caps to see how many stages are supported. MaxTextureBlendStages is the one you're looking for.
Sirob Yes.» - status: Work-O-Rama.
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.

This topic is closed to new replies.

Advertisement