diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-21 02:45:34 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:49 +0100 |
commit | 15f431f0cb9f8d9d142ce631c59335ca99eb9ab4 (patch) | |
tree | c3302bb20bd5311d10612e1e254444f15bf60543 /src/video_core/shader/shader_ir.h | |
parent | shader_ir: Add constant buffer getters (diff) | |
download | yuzu-15f431f0cb9f8d9d142ce631c59335ca99eb9ab4.tar yuzu-15f431f0cb9f8d9d142ce631c59335ca99eb9ab4.tar.gz yuzu-15f431f0cb9f8d9d142ce631c59335ca99eb9ab4.tar.bz2 yuzu-15f431f0cb9f8d9d142ce631c59335ca99eb9ab4.tar.lz yuzu-15f431f0cb9f8d9d142ce631c59335ca99eb9ab4.tar.xz yuzu-15f431f0cb9f8d9d142ce631c59335ca99eb9ab4.tar.zst yuzu-15f431f0cb9f8d9d142ce631c59335ca99eb9ab4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 4e786a344..fde1594aa 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -624,6 +624,11 @@ private: Node GetPredicate(u64 pred, bool negated = false); /// Generates a predicate node for an immediate true or false value Node GetPredicate(bool immediate); + /// Generates a node representing an input atttribute. Keeps track of used attributes. + Node GetInputAttribute(Tegra::Shader::Attribute::Index index, u64 element, + const Tegra::Shader::IpaMode& input_mode, Node buffer = {}); + /// Generates a node representing an output atttribute. Keeps track of used attributes. + Node GetOutputAttribute(Tegra::Shader::Attribute::Index index, u64 element, Node buffer); template <typename... T> inline Node Operation(OperationCode code, const T*... operands) { |