diff options
| author | 2021-08-04 00:30:16 -0400 | |
|---|---|---|
| committer | 2021-11-16 22:11:29 +0100 | |
| commit | 65781f88f80a322b08241dc7dbceceed83434e30 (patch) | |
| tree | 62259c8c0b11d6623af07b343b82cfdfbf23f428 /src/shader_recompiler/backend/spirv | |
| parent | TextureCache: Fix Buffer Views Scaling. (diff) | |
| download | yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.gz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.xz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.zip | |
emit_spirv: Fix RescalingLayout alignment
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index dd6dff0c8..cf59f2572 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h | |||
| @@ -26,6 +26,7 @@ struct RescalingLayout { | |||
| 26 | alignas(16) std::array<u32, NUM_TEXTURE_SCALING_WORDS> rescaling_textures; | 26 | alignas(16) std::array<u32, NUM_TEXTURE_SCALING_WORDS> rescaling_textures; |
| 27 | alignas(16) std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images; | 27 | alignas(16) std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images; |
| 28 | }; | 28 | }; |
| 29 | constexpr u32 RESCALING_PUSH_CONSTANT_WORDS_OFFSET = offsetof(RescalingLayout, rescaling_textures); | ||
| 29 | 30 | ||
| 30 | [[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info, | 31 | [[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info, |
| 31 | IR::Program& program, Bindings& bindings); | 32 | IR::Program& program, Bindings& bindings); |