diff options
| author | 2021-04-06 05:52:41 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:26 -0400 | |
| commit | ef885522243ff966a0b25a35ad590862ff31e03a (patch) | |
| tree | 87570d2268bcdc13db8e60604d45b0ddc5b8481b /src/shader_recompiler/backend | |
| parent | shader: Implement texture buffers (diff) | |
| download | yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar.gz yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.tar.xz yuzu-ef885522243ff966a0b25a35ad590862ff31e03a.zip | |
shader: Fix TextureGrad
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_image.cpp | 2 |
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: | |||
| 77 | } | 77 | } |
| 78 | boost::container::static_vector<Id, 3> deriv_x_accum; | 78 | boost::container::static_vector<Id, 3> deriv_x_accum; |
| 79 | boost::container::static_vector<Id, 3> deriv_y_accum; | 79 | boost::container::static_vector<Id, 3> deriv_y_accum; |
| 80 | for (size_t i = 0; i < num_derivates; i++) { | 80 | for (u32 i = 0; i < num_derivates; ++i) { |
| 81 | deriv_x_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2)); | 81 | deriv_x_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2)); |
| 82 | deriv_y_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2 + 1)); | 82 | deriv_y_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2 + 1)); |
| 83 | } | 83 | } |