Commit 93b3106b authored by Ivan Gyurdiev's avatar Ivan Gyurdiev Committed by Alexandre Julliard

wined3d: Add D3DVS_RASTOUT_OFFSETS to the WINED3D namespace.

parent 997e670e
...@@ -942,13 +942,13 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_ExecuteSW(IWineD3DVertexShader* iface, W ...@@ -942,13 +942,13 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_ExecuteSW(IWineD3DVertexShader* iface, W
break; break;
case WINED3DSPR_RASTOUT: case WINED3DSPR_RASTOUT:
switch (reg) { switch (reg) {
case D3DSRO_POSITION: case WINED3DSRO_POSITION:
p[i] = &output->oPos; p[i] = &output->oPos;
break; break;
case D3DSRO_FOG: case WINED3DSRO_FOG:
p[i] = &output->oFog; p[i] = &output->oFog;
break; break;
case D3DSRO_POINT_SIZE: case WINED3DSRO_POINT_SIZE:
p[i] = &output->oPts; p[i] = &output->oPts;
break; break;
} }
......
...@@ -80,6 +80,15 @@ typedef enum _WINED3DSHADER_PARAM_REGISTER_TYPE { ...@@ -80,6 +80,15 @@ typedef enum _WINED3DSHADER_PARAM_REGISTER_TYPE {
WINED3DSPR_FORCE_DWORD = 0x7FFFFFFF WINED3DSPR_FORCE_DWORD = 0x7FFFFFFF
} WINED3DSHADER_PARAM_REGISTER_TYPE; } WINED3DSHADER_PARAM_REGISTER_TYPE;
/* RASTOUT register offsets */
typedef enum _WINED3DVS_RASTOUT_OFFSETS {
WINED3DSRO_POSITION = 0,
WINED3DSRO_FOG = 1,
WINED3DSRO_POINT_SIZE = 2,
WINED3DSRO_FORCE_DWORD = 0x7FFFFFFF
} WINED3DVS_RASTOUT_OFFSETS;
/** Source register modifiers **/ /** Source register modifiers **/
#define WINED3DVS_SWIZZLE_SHIFT 16 #define WINED3DVS_SWIZZLE_SHIFT 16
#define WINED3DVS_SWIZZLE_MASK (0xFF << WINED3DVS_SWIZZLE_SHIFT) #define WINED3DVS_SWIZZLE_MASK (0xFF << WINED3DVS_SWIZZLE_SHIFT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment