summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferShaderGen.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-11-23 22:40:03 +0000
committerGitHub <noreply@github.com>2022-11-23 22:40:03 +0000
commitd6437b7e461af0ef457c05be996d6fb30d7922ac (patch)
tree4a73b4b6ecb4fe3f172c7bbbdc729ddf0cde56d6 /Source/Core/VideoCommon/FramebufferShaderGen.cpp
parentddf63bacb9fec7bdc9cc2df3601cddce2bc8f7af (diff)
parentf5d11c1e388768043516fdb54e71b72c26c3c22d (diff)
Merge pull request #11123 from Pokechu22/fmt-9.1.0
Externals: Update fmt to 9.1.0
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/FramebufferShaderGen.cpp10
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)
{