diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-04 19:40:57 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-04 19:40:57 +0100 |
commit | 3dd6b55851978440f39487a6ad06b30b792b3b36 (patch) | |
tree | d5019053dc20d420181443ff90207aab2ff28938 /src/video_core/shader/node.h | |
parent | Shader_IR: add the ability to amend code in the shader ir. (diff) | |
download | yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.gz yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.bz2 yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.lz yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.xz yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.zst yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/node.h | 10 |
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 = class AmendNode { public: - std::optional<u32> GetAmendIndex() const { + std::optional<std::size_t> GetAmendIndex() const { if (amend_index == amend_null_index) { return std::nullopt; } return {amend_index}; } - void SetAmendIndex(u32 index) { + void SetAmendIndex(std::size_t index) { amend_index = index; } @@ -410,8 +410,8 @@ public: } private: - static constexpr u32 amend_null_index = 0xFFFFFFFF; - u32 amend_index{amend_null_index}; + static constexpr std::size_t amend_null_index = 0xFFFFFFFFFFFFFFFFULL; + std::size_t amend_index{amend_null_index}; }; /// Holds any kind of operation that can be done in the IR @@ -652,7 +652,7 @@ private: }; /// Commentary, can be dropped -class CommentNode final : public AmendNode { +class CommentNode final { public: explicit CommentNode(std::string text) : text{std::move(text)} {} |