summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_ir.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-09-15 20:25:07 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-09-19 17:41:29 +0200
commit7606da5611b5626790e99b4387e033eaea20c2cb (patch)
tree1ce0273ad940c847b6fb4d1832de579f069d3615 /src/video_core/shader/shader_ir.h
parentVideo Core: initial Implementation of InstanceDraw Packaging (diff)
downloadyuzu-7606da5611b5626790e99b4387e033eaea20c2cb.tar
yuzu-7606da5611b5626790e99b4387e033eaea20c2cb.tar.gz
yuzu-7606da5611b5626790e99b4387e033eaea20c2cb.tar.bz2
yuzu-7606da5611b5626790e99b4387e033eaea20c2cb.tar.lz
yuzu-7606da5611b5626790e99b4387e033eaea20c2cb.tar.xz
yuzu-7606da5611b5626790e99b4387e033eaea20c2cb.tar.zst
yuzu-7606da5611b5626790e99b4387e033eaea20c2cb.zip
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r--src/video_core/shader/shader_ir.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index 6aed9bb84..2f03d83ba 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -124,6 +124,14 @@ public:
return uses_point_size;
}
+ bool UsesInstanceId() const {
+ return uses_instance_id;
+ }
+
+ bool UsesVertexId() const {
+ return uses_vertex_id;
+ }
+
bool HasPhysicalAttributes() const {
return uses_physical_attributes;
}
@@ -373,6 +381,8 @@ private:
bool uses_viewport_index{};
bool uses_point_size{};
bool uses_physical_attributes{}; // Shader uses AL2P or physical attribute read/writes
+ bool uses_instance_id{};
+ bool uses_vertex_id{};
Tegra::Shader::Header header;
};