emit_spirv: Fix RescalingLayout alignment
This commit is contained in:
parent
674b073744
commit
92bb068ad5
3 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue