GeometryShaderGen: Set the properties of the VS_OUTPUT struct in the uid.

This commit is contained in:
Jules Blok 2014-11-22 19:18:45 +01:00
parent ed9f258b27
commit 9b2cd82da5
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,9 @@ static inline void GenerateGeometryShader(T& out, u32 components, API_TYPE ApiTy
out.Write(s_shader_uniforms);
out.Write("};\n");
uid_data->numTexGens = xfmem.numTexGen.numTexGens;
uid_data->pixel_lighting = g_ActiveConfig.bEnablePixelLighting;
GenerateVSOutputStruct(out, ApiType);
out.Write("centroid in VS_OUTPUT o[3];\n");

View File

@ -14,6 +14,8 @@ struct geometry_shader_uid_data
u32 NumValues() const { return sizeof(geometry_shader_uid_data); }
u32 stereo : 1;
u32 numTexGens : 4;
u32 pixel_lighting : 1;
};
#pragma pack()