emit_spirv: Fix RescalingLayout alignment

This commit is contained in:
ameerj 2021-08-04 00:30:16 -04:00 committed by Fernando Sahmkow
parent 674b073744
commit 92bb068ad5
3 changed files with 8 additions and 4 deletions

View file

@ -26,6 +26,7 @@ struct RescalingLayout {
alignas(16) std::array<u32, NUM_TEXTURE_SCALING_WORDS> rescaling_textures;
alignas(16) std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images;
};
constexpr u32 RESCALING_PUSH_CONSTANT_WORDS_OFFSET = offsetof(RescalingLayout, rescaling_textures);
[[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info,
IR::Program& program, Bindings& bindings);