diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-19 21:23:52 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:28 +0200 |
commit | 6325601947a523b1aea192a51ccd9e417bf0646c (patch) | |
tree | 3c68bd7f8f126e6b49a98953410223eb42fe64a3 /src/shader_recompiler/backend/spirv/emit_context.cpp | |
parent | spirv: Replace Constant/ConstantComposite with Const helper (diff) | |
download | yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar.gz yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar.bz2 yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar.lz yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar.xz yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar.zst yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index 214ef9c25..2ffa8c453 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp @@ -1135,7 +1135,8 @@ void EmitContext::DefineOutputs(const IR::Program& program) { viewport_index = DefineOutput(*this, U32[1], invocations, spv::BuiltIn::ViewportIndex); } if (info.stores_viewport_mask && profile.support_viewport_mask) { - viewport_mask = DefineOutput(*this, TypeArray(U32[1], Const(1u)), std::nullopt); + viewport_mask = DefineOutput(*this, TypeArray(U32[1], Const(1u)), std::nullopt, + spv::BuiltIn::ViewportMaskNV); } for (size_t index = 0; index < info.stores_generics.size(); ++index) { if (info.stores_generics[index]) { |