diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-08-04 06:30:16 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 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 yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.gz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.bz2 yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.lz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.xz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.zst yuzu-65781f88f80a322b08241dc7dbceceed83434e30.zip |
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 { 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); |