diff options
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 794cd4ed8..32f679f2a 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -510,7 +510,8 @@ void EmitContext::DefineOutputs(const Info& info) { | |||
| 510 | const Id type{TypeArray(F32[1], Constant(U32[1], 8U))}; | 510 | const Id type{TypeArray(F32[1], Constant(U32[1], 8U))}; |
| 511 | clip_distances = DefineOutput(*this, type, spv::BuiltIn::ClipDistance); | 511 | clip_distances = DefineOutput(*this, type, spv::BuiltIn::ClipDistance); |
| 512 | } | 512 | } |
| 513 | if (info.stores_viewport_index && !ignore_viewport_layer) { | 513 | if (info.stores_viewport_index && |
| 514 | (profile.support_viewport_index_layer_non_geometry || stage == Shader::Stage::Geometry)) { | ||
| 514 | if (stage == Stage::Fragment) { | 515 | if (stage == Stage::Fragment) { |
| 515 | throw NotImplementedException("Storing ViewportIndex in Fragment stage"); | 516 | throw NotImplementedException("Storing ViewportIndex in Fragment stage"); |
| 516 | } | 517 | } |