summaryrefslogtreecommitdiff
path: root/src/video_core/shader/node.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-01-04 14:40:57 -0400
committerGravatar Fernando Sahmkow2020-01-04 14:40:57 -0400
commit3dd6b55851978440f39487a6ad06b30b792b3b36 (patch)
treed5019053dc20d420181443ff90207aab2ff28938 /src/video_core/shader/node.h
parentShader_IR: add the ability to amend code in the shader ir. (diff)
downloadyuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.gz
yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.xz
yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.zip
Shader_IR: Address Feedback
Diffstat (limited to 'src/video_core/shader/node.h')
-rw-r--r--src/video_core/shader/node.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h
index 42e82ab74..4e155542a 100644
--- a/src/video_core/shader/node.h
+++ b/src/video_core/shader/node.h
@@ -394,14 +394,14 @@ using Meta =
394 394
395class AmendNode { 395class AmendNode {
396public: 396public:
397 std::optional<u32> GetAmendIndex() const { 397 std::optional<std::size_t> GetAmendIndex() const {
398 if (amend_index == amend_null_index) { 398 if (amend_index == amend_null_index) {
399 return std::nullopt; 399 return std::nullopt;
400 } 400 }
401 return {amend_index}; 401 return {amend_index};
402 } 402 }
403 403
404 void SetAmendIndex(u32 index) { 404 void SetAmendIndex(std::size_t index) {
405 amend_index = index; 405 amend_index = index;
406 } 406 }
407 407
@@ -410,8 +410,8 @@ public:
410 } 410 }
411 411
412private: 412private:
413 static constexpr u32 amend_null_index = 0xFFFFFFFF; 413 static constexpr std::size_t amend_null_index = 0xFFFFFFFFFFFFFFFFULL;
414 u32 amend_index{amend_null_index}; 414 std::size_t amend_index{amend_null_index};
415}; 415};
416 416
417/// Holds any kind of operation that can be done in the IR 417/// Holds any kind of operation that can be done in the IR
@@ -652,7 +652,7 @@ private:
652}; 652};
653 653
654/// Commentary, can be dropped 654/// Commentary, can be dropped
655class CommentNode final : public AmendNode { 655class CommentNode final {
656public: 656public:
657 explicit CommentNode(std::string text) : text{std::move(text)} {} 657 explicit CommentNode(std::string text) : text{std::move(text)} {}
658 658