summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_ir.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-01 00:46:49 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-03 02:46:25 +0200
commitfe700e1856fa078ba0fc93ced8576f5023f3146a (patch)
treea470f5071e0e5b323af88aeda3110b791df4ae84 /src/video_core/shader/shader_ir.h
parentgl_shader_decompiler: Implement GLSL physical attributes (diff)
downloadyuzu-fe700e1856fa078ba0fc93ced8576f5023f3146a.tar
yuzu-fe700e1856fa078ba0fc93ced8576f5023f3146a.tar.gz
yuzu-fe700e1856fa078ba0fc93ced8576f5023f3146a.tar.bz2
yuzu-fe700e1856fa078ba0fc93ced8576f5023f3146a.tar.lz
yuzu-fe700e1856fa078ba0fc93ced8576f5023f3146a.tar.xz
yuzu-fe700e1856fa078ba0fc93ced8576f5023f3146a.tar.zst
yuzu-fe700e1856fa078ba0fc93ced8576f5023f3146a.zip
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r--src/video_core/shader/shader_ir.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index a4bb0c41c..7e54f7e74 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -465,10 +465,12 @@ private:
/// Attribute buffer memory (known as attributes or varyings in GLSL terms)
class AbufNode final {
public:
+ // Initialize for standard attributes (index is explicit).
explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element,
Node buffer = {})
: buffer{buffer}, index{index}, element{element} {}
+ // Initialize for physical attributes (index is a variable value).
explicit constexpr AbufNode(Node physical_address, Node buffer = {})
: physical_address{physical_address}, buffer{buffer} {}
@@ -618,7 +620,7 @@ public:
}
bool HasPhysicalAttributes() const {
- return use_physical_attributes;
+ return uses_physical_attributes;
}
const Tegra::Shader::Header& GetHeader() const {
@@ -885,7 +887,7 @@ private:
std::set<Sampler> used_samplers;
std::array<bool, Tegra::Engines::Maxwell3D::Regs::NumClipDistances> used_clip_distances{};
std::map<GlobalMemoryBase, GlobalMemoryUsage> used_global_memory;
- bool use_physical_attributes{}; // Shader uses AL2P or physical attribute read/writes
+ bool uses_physical_attributes{}; // Shader uses AL2P or physical attribute read/writes
Tegra::Shader::Header header;
};