diff options
| author | 2021-04-03 01:48:39 +0200 | |
|---|---|---|
| committer | 2021-07-22 21:51:26 -0400 | |
| commit | baec84247fe815199595d9e8077b71f3b5c8317e (patch) | |
| tree | 84195625ffb43922ba87b25296057bdeb9f22a2c /src/shader_recompiler/backend/spirv/emit_context.cpp | |
| parent | shader: Implement SR_LaneId (diff) | |
| download | yuzu-baec84247fe815199595d9e8077b71f3b5c8317e.tar.gz yuzu-baec84247fe815199595d9e8077b71f3b5c8317e.tar.xz yuzu-baec84247fe815199595d9e8077b71f3b5c8317e.zip | |
shader: Address Feedback
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 | } |