wined3d: Add code for using register combiners for texture stage operations.
commitf3a2a9f30aa5e860eabb6a3df6e5d9f40359bb31
authorH. Verbeet <hverbeet@gmail.com>
Tue, 27 Jun 2006 21:42:35 +0000 (27 23:42 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 28 Jun 2006 14:08:36 +0000 (28 16:08 +0200)
tree3357335c2b58327a5efcb22b947cd31524ab0c96
parentac98d566acc20b0334d3deacd7c95869336f4d53
wined3d: Add code for using register combiners for texture stage operations.

On nVidia cards the value of GL_MAX_TEXTURE_UNITS is generally not
larger than 4. In Direct3D that would correspond to
MaxSimultaneousTextures in the caps, rather than MaxTextureBlendStages
(which can be much larger) to which it currently corresponds in
wined3d. Using register combiners we can get around that limitation
and get up to GL_MAX_GENERAL_COMBINERS_NV (typically 8) texture
stages. This patch adds code for doing the texture operations with
register combiners instead of ARB_texture_env_combine or
NV_texture_env_combine4, but doesn't make use of that code yet. That's
what the next patch will do.
dlls/wined3d/utils.c
dlls/wined3d/wined3d_private.h