diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-16 01:00:51 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-16 01:01:52 +0100 |
commit | 6442e02c5daf09b1087dffb26780c03ed5d2ffd5 (patch) | |
tree | cc12cb12ceca490957cdf05090224ac349744799 /src/video_core/shader/shader_ir.h | |
parent | shader/shader_ir: Fix clip distance usage stores (diff) | |
download | yuzu-6442e02c5daf09b1087dffb26780c03ed5d2ffd5.tar yuzu-6442e02c5daf09b1087dffb26780c03ed5d2ffd5.tar.gz yuzu-6442e02c5daf09b1087dffb26780c03ed5d2ffd5.tar.bz2 yuzu-6442e02c5daf09b1087dffb26780c03ed5d2ffd5.tar.lz yuzu-6442e02c5daf09b1087dffb26780c03ed5d2ffd5.tar.xz yuzu-6442e02c5daf09b1087dffb26780c03ed5d2ffd5.tar.zst yuzu-6442e02c5daf09b1087dffb26780c03ed5d2ffd5.zip |
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index dde036b40..80fc9b82c 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -137,6 +137,10 @@ public: return uses_vertex_id; } + bool UsesLegacyVaryings() const { + return uses_legacy_varyings; + } + bool UsesWarps() const { return uses_warps; } @@ -343,6 +347,9 @@ private: /// Inserts a sequence of bits from a node Node BitfieldInsert(Node base, Node insert, u32 offset, u32 bits); + /// Marks the usage of a input or output attribute. + void MarkAttributeUsage(Tegra::Shader::Attribute::Index index, u64 element); + void WriteTexInstructionFloat(NodeBlock& bb, Tegra::Shader::Instruction instr, const Node4& components); @@ -443,6 +450,7 @@ private: bool uses_physical_attributes{}; // Shader uses AL2P or physical attribute read/writes bool uses_instance_id{}; bool uses_vertex_id{}; + bool uses_legacy_varyings{}; bool uses_warps{}; bool uses_indexed_samplers{}; |