wined3d: Add support for shader model 3.0 I/O registers.
commita1f4dfe4e37e8d18a444ccf3cf333550659b57d3
authorIvan Gyurdiev <ivg231@gmail.com>
Mon, 12 Jun 2006 06:57:07 +0000 (12 02:57 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 13 Jun 2006 09:40:22 +0000 (13 11:40 +0200)
tree50f2730a38bf5d45cc4af4e8ca632ed3ec7ece4f
parent1a3003338f2f216c82df19a832297e17f0f5f318
wined3d: Add support for shader model 3.0 I/O registers.

SM 3.0 can pack multiple "semantics" into 12 generic input/output registers.

To support that, define temporaries called IN and OUT, and use those as
the output registers. At the end of the vshader, unpack the OUT temps
into the proper GL variables. At the beginning of the pshader, pack the
GL variables back into 12 IN registers.
dlls/wined3d/baseshader.c
dlls/wined3d/glsl_shader.c
dlls/wined3d/pixelshader.c
dlls/wined3d/vertexshader.c
dlls/wined3d/wined3d_private.h