summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/UberShaderCommon.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2022-05-04 00:41:34 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2022-06-24 18:09:53 -0500
commit5dd2704416385946fbdd80b38c01b0f9d7735648 (patch)
treec6fa0e6d5552282939412f29c7f6b9fc7f6f4337 /Source/Core/VideoCommon/UberShaderCommon.cpp
parent3790c99a7d1f6377166049c61bbe03f93e2c3a60 (diff)
D3D / VideoCommon: generate HLSL from SPIRV
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderCommon.cpp')
-rw-r--r--Source/Core/VideoCommon/UberShaderCommon.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/UberShaderCommon.cpp b/Source/Core/VideoCommon/UberShaderCommon.cpp
index 4a8fba8839..b9c1306f8b 100644
--- a/Source/Core/VideoCommon/UberShaderCommon.cpp
+++ b/Source/Core/VideoCommon/UberShaderCommon.cpp
@@ -77,8 +77,7 @@ void WriteVertexLighting(ShaderCode& out, APIType api_type, std::string_view wor
std::string_view out_color_1_var)
{
out.Write("// Lighting\n");
- out.Write("{}for (uint chan = 0u; chan < {}u; chan++) {{\n",
- api_type == APIType::D3D ? "[loop] " : "", NUM_XF_COLOR_CHANNELS);
+ out.Write("for (uint chan = 0u; chan < {}u; chan++) {{\n", NUM_XF_COLOR_CHANNELS);
out.Write(" uint colorreg = xfmem_color(chan);\n"
" uint alphareg = xfmem_alpha(chan);\n"
" int4 mat = " I_MATERIALS "[chan + 2u]; \n"