diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2019-09-22 15:13:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-22 15:13:02 +0200 |
commit | 9d69206cd00982e02f90845c98d7d6c9887645c3 (patch) | |
tree | 51ec8f19f2e91f49a1f77baaffecd4cb7677e911 /src/video_core/shader/shader_ir.h | |
parent | Merge pull request #2891 from FearlessTobi/rod-tex (diff) | |
parent | Maxwell3D: Corrections and refactors to MME instance refactor (diff) | |
download | yuzu-9d69206cd00982e02f90845c98d7d6c9887645c3.tar yuzu-9d69206cd00982e02f90845c98d7d6c9887645c3.tar.gz yuzu-9d69206cd00982e02f90845c98d7d6c9887645c3.tar.bz2 yuzu-9d69206cd00982e02f90845c98d7d6c9887645c3.tar.lz yuzu-9d69206cd00982e02f90845c98d7d6c9887645c3.tar.xz yuzu-9d69206cd00982e02f90845c98d7d6c9887645c3.tar.zst yuzu-9d69206cd00982e02f90845c98d7d6c9887645c3.zip |
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 10 |
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; }; |