diff options
| author | 2021-08-04 00:30:16 -0400 | |
|---|---|---|
| committer | 2021-11-16 22:11:29 +0100 | |
| commit | dc28284437c7f99baa98a242f4713a1ab94418c8 (patch) | |
| tree | 466ca4e32f201dd7ec167a75de748390ff491ba5 /src/shader_recompiler/backend | |
| parent | shader: Properly scale image reads and add GL SPIR-V support (diff) | |
| download | yuzu-dc28284437c7f99baa98a242f4713a1ab94418c8.tar.gz yuzu-dc28284437c7f99baa98a242f4713a1ab94418c8.tar.xz yuzu-dc28284437c7f99baa98a242f4713a1ab94418c8.zip | |
emit_spirv: Fix RescalingLayout alignment
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index db0998ad6..dd6dff0c8 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h | |||
| @@ -23,8 +23,8 @@ constexpr u32 NUM_TEXTURE_AND_IMAGE_SCALING_WORDS = | |||
| 23 | 23 | ||
| 24 | struct RescalingLayout { | 24 | struct RescalingLayout { |
| 25 | u32 down_factor; | 25 | u32 down_factor; |
| 26 | std::array<u32, NUM_TEXTURE_SCALING_WORDS> rescaling_textures; | 26 | alignas(16) std::array<u32, NUM_TEXTURE_SCALING_WORDS> rescaling_textures; |
| 27 | std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images; | 27 | alignas(16) std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images; |
| 28 | }; | 28 | }; |
| 29 | 29 | ||
| 30 | [[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info, | 30 | [[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info, |