summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/spirv/emit_context.cpp
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-03-29 20:05:38 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commit9d7422d967a97fea7888449652ad93da88e92b54 (patch)
tree609f0dd7d03d26cea693807b524f59e9d6092885 /src/shader_recompiler/backend/spirv/emit_context.cpp
parentshader: Add PointSize attribute (diff)
downloadyuzu-9d7422d967a97fea7888449652ad93da88e92b54.tar
yuzu-9d7422d967a97fea7888449652ad93da88e92b54.tar.gz
yuzu-9d7422d967a97fea7888449652ad93da88e92b54.tar.bz2
yuzu-9d7422d967a97fea7888449652ad93da88e92b54.tar.lz
yuzu-9d7422d967a97fea7888449652ad93da88e92b54.tar.xz
yuzu-9d7422d967a97fea7888449652ad93da88e92b54.tar.zst
yuzu-9d7422d967a97fea7888449652ad93da88e92b54.zip
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_context.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp
index ecee1220e..2c93bada5 100644
--- a/src/shader_recompiler/backend/spirv/emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_context.cpp
@@ -425,6 +425,9 @@ void EmitContext::DefineInputs(const Info& info) {
if (info.loads_front_face) {
front_face = DefineInput(*this, U1, spv::BuiltIn::FrontFacing);
}
+ if (info.loads_point_coord) {
+ point_coord = DefineInput(*this, F32[2], spv::BuiltIn::PointCoord);
+ }
for (size_t index = 0; index < info.input_generics.size(); ++index) {
const InputVarying generic{info.input_generics[index]};
if (!generic.used) {