From 9b2cd82da5e81c74eea06ebc6cf49454eb4eaf4e Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Sat, 22 Nov 2014 19:18:45 +0100 Subject: [PATCH] GeometryShaderGen: Set the properties of the VS_OUTPUT struct in the uid. --- Source/Core/VideoCommon/GeometryShaderGen.cpp | 3 +++ Source/Core/VideoCommon/GeometryShaderGen.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index afaa16582b..83a590a7ed 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -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"); diff --git a/Source/Core/VideoCommon/GeometryShaderGen.h b/Source/Core/VideoCommon/GeometryShaderGen.h index fffa8b34ce..3f7dc5198b 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.h +++ b/Source/Core/VideoCommon/GeometryShaderGen.h @@ -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()