wined3d: Improve Sampler support on 2.0 and 3.0 shaders.
commit0d08316523590156b990dc48e6754ae0a74e1439
authorIvan Gyurdiev <ivg231@gmail.com>
Mon, 12 Jun 2006 06:59:16 +0000 (12 02:59 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 13 Jun 2006 09:40:22 +0000 (13 11:40 +0200)
treeecc557ebd6e562e9232e1447731e57e8b1499654
parente99926ee06b5696d69d6e04dafc0651f32c07694
wined3d: Improve Sampler support on 2.0 and 3.0 shaders.

- track sampler declarations and store the sampler usage in reg_maps structure
- store a fake sampler usage for 1.X shaders (defined as 2D sampler)
- re-sync glsl TEX implementation with the ARB one (no idea why they diverged..)
- use sampler type in new TEX implementation to support 2D, 3D, and Cube sampling
- change drawprim to bind pixel shader samplers

Additional improvements:
- rename texture limit to texcoord to prevent confusion
- add sampler limit, and use that for samplers - *not* the same as texcoord above
dlls/wined3d/baseshader.c
dlls/wined3d/drawprim.c
dlls/wined3d/glsl_shader.c
dlls/wined3d/pixelshader.c
dlls/wined3d/vertexshader.c
dlls/wined3d/wined3d_private.h