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.
This commit is contained in:
Lioncash 2019-01-28 07:50:30 -05:00
parent 3e1a9a45a6
commit 62e08c30b7
1 changed files with 2 additions and 2 deletions

View File

@ -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;