diff options
| author | 2021-04-16 18:47:26 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:28 -0400 | |
| commit | 80940b17069f6baa733a9b572445b27bc7509137 (patch) | |
| tree | b6d73140e8f84cd4c3916895cbf054d124c98b7e /src/shader_recompiler/backend/spirv/emit_context.cpp | |
| parent | shader: Implement PIXLD.MY_INDEX (diff) | |
| download | yuzu-80940b17069f6baa733a9b572445b27bc7509137.tar.gz yuzu-80940b17069f6baa733a9b572445b27bc7509137.tar.xz yuzu-80940b17069f6baa733a9b572445b27bc7509137.zip | |
shader: Implement SampleMask
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index 0b4abeb44..b9e6d5655 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -1179,7 +1179,10 @@ void EmitContext::DefineOutputs(const IR::Program& program) { | |||
| 1179 | if (info.stores_frag_depth) { | 1179 | if (info.stores_frag_depth) { |
| 1180 | frag_depth = DefineOutput(*this, F32[1], std::nullopt); | 1180 | frag_depth = DefineOutput(*this, F32[1], std::nullopt); |
| 1181 | Decorate(frag_depth, spv::Decoration::BuiltIn, spv::BuiltIn::FragDepth); | 1181 | Decorate(frag_depth, spv::Decoration::BuiltIn, spv::BuiltIn::FragDepth); |
| 1182 | Name(frag_depth, "frag_depth"); | 1182 | } |
| 1183 | if (info.stores_sample_mask) { | ||
| 1184 | sample_mask = DefineOutput(*this, U32[1], std::nullopt); | ||
| 1185 | Decorate(sample_mask, spv::Decoration::BuiltIn, spv::BuiltIn::SampleMask); | ||
| 1183 | } | 1186 | } |
| 1184 | break; | 1187 | break; |
| 1185 | default: | 1188 | default: |