summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-10-15 18:21:56 -0400
committerGravatar Lioncash2019-10-15 18:21:59 -0400
commit67658dd6e84ca0ee04cdfd761aa1a7f5ac96cd42 (patch)
tree36714096d646ef16aca479e7fe9bcf3317b90b5d /src
parentgl_shader_decompiler: Avoid unnecessary copies of MetaImage (diff)
downloadyuzu-67658dd6e84ca0ee04cdfd761aa1a7f5ac96cd42.tar.gz
yuzu-67658dd6e84ca0ee04cdfd761aa1a7f5ac96cd42.tar.xz
yuzu-67658dd6e84ca0ee04cdfd761aa1a7f5ac96cd42.zip
shader/node: std::move Meta instance within OperationNode constructor
Allows usages of the constructor to avoid an unnecessary copy.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h
index 338bab17c..447fb5c1d 100644
--- a/src/video_core/shader/node.h
+++ b/src/video_core/shader/node.h
@@ -410,7 +410,7 @@ public:
410 explicit OperationNode(OperationCode code) : OperationNode(code, Meta{}) {} 410 explicit OperationNode(OperationCode code) : OperationNode(code, Meta{}) {}
411 411
412 explicit OperationNode(OperationCode code, Meta meta) 412 explicit OperationNode(OperationCode code, Meta meta)
413 : OperationNode(code, meta, std::vector<Node>{}) {} 413 : OperationNode(code, std::move(meta), std::vector<Node>{}) {}
414 414
415 explicit OperationNode(OperationCode code, std::vector<Node> operands) 415 explicit OperationNode(OperationCode code, std::vector<Node> operands)
416 : OperationNode(code, Meta{}, std::move(operands)) {} 416 : OperationNode(code, Meta{}, std::move(operands)) {}