summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-01-28 07:50:30 -0500
committerLioncash <mathew1800@gmail.com>2019-01-28 07:50:34 -0500
commit62e08c30b7ac61d8950b1dd732d7f82add51f77d (patch)
tree30e4c84b52495862fcec47e28e1e5f04065f5f82 /src
parent3e1a9a45a6a1686e91768deef5f33afd5e55ed45 (diff)
shader/shader_ir: Amend constructor initializer ordering for AbufNode
Orders the class members in the same order that they would actually be initialized in. Gets rid of two compiler warnings.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/shader_ir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index 96e7df6b6..ea057980d 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -415,11 +415,11 @@ class AbufNode final {
public:
explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element,
const Tegra::Shader::IpaMode& input_mode, Node buffer = {})
- : input_mode{input_mode}, index{index}, element{element}, buffer{buffer} {}
+ : input_mode{input_mode}, buffer{buffer}, index{index}, element{element} {}
explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element,
Node buffer = {})
- : input_mode{}, index{index}, element{element}, buffer{buffer} {}
+ : input_mode{}, buffer{buffer}, index{index}, element{element} {}
Tegra::Shader::IpaMode GetInputMode() const {
return input_mode;