diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-10-11 14:23:38 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-11-23 13:45:43 -0800 |
| commit | cc5640245cf4316f9bafcb11141d8868881ddffb (patch) | |
| tree | 3aae1df4cf5809c18574537c3e60a41f7c6001dd /Source/Core/VideoCommon/FramebufferShaderGen.cpp | |
| parent | b051903c3de9d7aad5794d97be665e4990371783 (diff) | |
Fix build errors related to formatting non-scoped enums
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferShaderGen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/FramebufferShaderGen.cpp b/Source/Core/VideoCommon/FramebufferShaderGen.cpp index 49684bb518..84e9e4b843 100644 --- a/Source/Core/VideoCommon/FramebufferShaderGen.cpp +++ b/Source/Core/VideoCommon/FramebufferShaderGen.cpp @@ -98,16 +98,16 @@ void EmitVertexMainDeclaration(ShaderCode& code, u32 num_tex_inputs, u32 num_col { for (u32 i = 0; i < num_tex_inputs; i++) { - const auto attribute = SHADER_TEXTURE0_ATTRIB + i; - code.Write("ATTRIBUTE_LOCATION({}) in float3 rawtex{};\n", attribute, i); + const auto attribute = ShaderAttrib::TexCoord0 + i; + code.Write("ATTRIBUTE_LOCATION({:s}) in float3 rawtex{};\n", attribute, i); } for (u32 i = 0; i < num_color_inputs; i++) { - const auto attribute = SHADER_COLOR0_ATTRIB + i; - code.Write("ATTRIBUTE_LOCATION({}) in float4 rawcolor{};\n", attribute, i); + const auto attribute = ShaderAttrib::Color0 + i; + code.Write("ATTRIBUTE_LOCATION({:s}) in float4 rawcolor{};\n", attribute, i); } if (position_input) - code.Write("ATTRIBUTE_LOCATION({}) in float4 rawpos;\n", SHADER_POSITION_ATTRIB); + code.Write("ATTRIBUTE_LOCATION({:s}) in float4 rawpos;\n", ShaderAttrib::Position); if (g_ActiveConfig.backend_info.bSupportsGeometryShaders) { |
