summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-01-28 07:50:30 -0500
committerGravatar Lioncash2019-01-28 07:50:34 -0500
commit62e08c30b7ac61d8950b1dd732d7f82add51f77d (patch)
tree30e4c84b52495862fcec47e28e1e5f04065f5f82 /src
parentshader/decode: Avoid a pessimizing std::move within DecodeRange() (diff)
downloadyuzu-62e08c30b7ac61d8950b1dd732d7f82add51f77d.tar.gz
yuzu-62e08c30b7ac61d8950b1dd732d7f82add51f77d.tar.xz
yuzu-62e08c30b7ac61d8950b1dd732d7f82add51f77d.zip
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 {
415public: 415public:
416 explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element, 416 explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element,
417 const Tegra::Shader::IpaMode& input_mode, Node buffer = {}) 417 const Tegra::Shader::IpaMode& input_mode, Node buffer = {})
418 : input_mode{input_mode}, index{index}, element{element}, buffer{buffer} {} 418 : input_mode{input_mode}, buffer{buffer}, index{index}, element{element} {}
419 419
420 explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element, 420 explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element,
421 Node buffer = {}) 421 Node buffer = {})
422 : input_mode{}, index{index}, element{element}, buffer{buffer} {} 422 : input_mode{}, buffer{buffer}, index{index}, element{element} {}
423 423
424 Tegra::Shader::IpaMode GetInputMode() const { 424 Tegra::Shader::IpaMode GetInputMode() const {
425 return input_mode; 425 return input_mode;