summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/spirv/emit_spirv.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-11-04 06:21:58 +0100
committerGitHub <noreply@github.com>2022-11-04 06:21:58 +0100
commit38e4382f532d606afbd3969990a9ca3bac70e557 (patch)
treeb9af6ed0a26285f4b0dcd5c21028601004267607 /src/shader_recompiler/backend/spirv/emit_spirv.h
parentMerge pull request #9135 from liamwhite/service-thread-event (diff)
parentMerge branch 'master' into mipmap (diff)
downloadyuzu-38e4382f532d606afbd3969990a9ca3bac70e557.tar
yuzu-38e4382f532d606afbd3969990a9ca3bac70e557.tar.gz
yuzu-38e4382f532d606afbd3969990a9ca3bac70e557.tar.bz2
yuzu-38e4382f532d606afbd3969990a9ca3bac70e557.tar.lz
yuzu-38e4382f532d606afbd3969990a9ca3bac70e557.tar.xz
yuzu-38e4382f532d606afbd3969990a9ca3bac70e557.tar.zst
yuzu-38e4382f532d606afbd3969990a9ca3bac70e557.zip
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.h')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h
index 7567b6fc9..937881484 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv.h
+++ b/src/shader_recompiler/backend/spirv/emit_spirv.h
@@ -23,8 +23,12 @@ struct RescalingLayout {
alignas(16) std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images;
u32 down_factor;
};
+struct RenderAreaLayout {
+ std::array<f32, 4> render_area;
+};
constexpr u32 RESCALING_LAYOUT_WORDS_OFFSET = offsetof(RescalingLayout, rescaling_textures);
constexpr u32 RESCALING_LAYOUT_DOWN_FACTOR_OFFSET = offsetof(RescalingLayout, down_factor);
+constexpr u32 RENDERAREA_LAYOUT_OFFSET = offsetof(RenderAreaLayout, render_area);
[[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info,
IR::Program& program, Bindings& bindings);