summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-06 10:52:41 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:26 +0200
commitef885522243ff966a0b25a35ad590862ff31e03a (patch)
tree87570d2268bcdc13db8e60604d45b0ddc5b8481b /src
parentshader: Implement texture buffers (diff)
downloadyuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar
yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar.gz
yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar.bz2
yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar.lz
yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar.xz
yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar.zst
yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.zip
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
index 525f67c6e..f0f8db8c3 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
@@ -77,7 +77,7 @@ public:
}
boost::container::static_vector<Id, 3> deriv_x_accum;
boost::container::static_vector<Id, 3> deriv_y_accum;
- for (size_t i = 0; i < num_derivates; i++) {
+ for (u32 i = 0; i < num_derivates; ++i) {
deriv_x_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2));
deriv_y_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2 + 1));
}