Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10281 from Pokechu22/static-lighting-struct-string
LightingShaderGen: Make s_lighting_struct not inline
  • Loading branch information
JMC47 committed Dec 23, 2021
2 parents e6f40fa + 8502561 commit 6dae404
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Source/Core/VideoCommon/LightingShaderGen.h
Expand Up @@ -36,13 +36,13 @@ struct LightingUidData
u32 light_mask : 32; // 4x8 bits
};

constexpr inline char s_lighting_struct[] = "struct Light {\n"
"\tint4 color;\n"
"\tfloat4 cosatt;\n"
"\tfloat4 distatt;\n"
"\tfloat4 pos;\n"
"\tfloat4 dir;\n"
"};\n";
constexpr char s_lighting_struct[] = "struct Light {\n"
"\tint4 color;\n"
"\tfloat4 cosatt;\n"
"\tfloat4 distatt;\n"
"\tfloat4 pos;\n"
"\tfloat4 dir;\n"
"};\n";

void GenerateLightingShaderCode(ShaderCode& object, const LightingUidData& uid_data,
std::string_view in_color_name, std::string_view dest);
Expand Down

0 comments on commit 6dae404

Please sign in to comment.