diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-03-26 23:52:06 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | b7589fe1154d9e810e83f6c609dad1d646ec0359 (patch) | |
tree | f8b79ef7529b80f0322b0d84a88e3a7df225e3f0 /src/shader_recompiler/backend/spirv/emit_context.cpp | |
parent | shader: Store type of phi nodes in flags (diff) | |
download | yuzu-b7589fe1154d9e810e83f6c609dad1d646ec0359.tar yuzu-b7589fe1154d9e810e83f6c609dad1d646ec0359.tar.gz yuzu-b7589fe1154d9e810e83f6c609dad1d646ec0359.tar.bz2 yuzu-b7589fe1154d9e810e83f6c609dad1d646ec0359.tar.lz yuzu-b7589fe1154d9e810e83f6c609dad1d646ec0359.tar.xz yuzu-b7589fe1154d9e810e83f6c609dad1d646ec0359.tar.zst yuzu-b7589fe1154d9e810e83f6c609dad1d646ec0359.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index 7531f8b21..ecee1220e 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp @@ -492,6 +492,12 @@ void EmitContext::DefineOutputs(const Info& info) { if (info.stores_position || stage == Stage::VertexB) { output_position = DefineOutput(*this, F32[4], spv::BuiltIn::Position); } + if (info.stores_point_size) { + if (stage == Stage::Fragment) { + throw NotImplementedException("Storing PointSize in Fragment stage"); + } + output_point_size = DefineOutput(*this, F32[1], spv::BuiltIn::PointSize); + } for (size_t i = 0; i < info.stores_generics.size(); ++i) { if (info.stores_generics[i]) { output_generics[i] = DefineOutput(*this, F32[4]); |