diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-01 04:34:38 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-10 03:25:21 +0100 |
commit | 6233b1db089686e1ea0dde68278e9086981d6f76 (patch) | |
tree | 42199ac76ce7f34d543d77a5a70cc3e5f46e2576 /src/video_core/shader/node.h | |
parent | Merge pull request #3205 from ReinUsesLisp/vk-device (diff) | |
download | yuzu-6233b1db089686e1ea0dde68278e9086981d6f76.tar yuzu-6233b1db089686e1ea0dde68278e9086981d6f76.tar.gz yuzu-6233b1db089686e1ea0dde68278e9086981d6f76.tar.bz2 yuzu-6233b1db089686e1ea0dde68278e9086981d6f76.tar.lz yuzu-6233b1db089686e1ea0dde68278e9086981d6f76.tar.xz yuzu-6233b1db089686e1ea0dde68278e9086981d6f76.tar.zst yuzu-6233b1db089686e1ea0dde68278e9086981d6f76.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/node.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h index b2576bdd6..8f4811c88 100644 --- a/src/video_core/shader/node.h +++ b/src/video_core/shader/node.h @@ -213,13 +213,14 @@ class PredicateNode; class AbufNode; class CbufNode; class LmemNode; +class PatchNode; class SmemNode; class GmemNode; class CommentNode; -using NodeData = - std::variant<OperationNode, ConditionalNode, GprNode, ImmediateNode, InternalFlagNode, - PredicateNode, AbufNode, CbufNode, LmemNode, SmemNode, GmemNode, CommentNode>; +using NodeData = std::variant<OperationNode, ConditionalNode, GprNode, ImmediateNode, + InternalFlagNode, PredicateNode, AbufNode, PatchNode, CbufNode, + LmemNode, SmemNode, GmemNode, CommentNode>; using Node = std::shared_ptr<NodeData>; using Node4 = std::array<Node, 4>; using NodeBlock = std::vector<Node>; @@ -542,6 +543,19 @@ private: u32 element{}; }; +/// Patch memory (used to communicate tessellation stages). +class PatchNode final { +public: + explicit PatchNode(u32 offset) : offset{offset} {} + + u32 GetOffset() const { + return offset; + } + +private: + u32 offset{}; +}; + /// Constant buffer node, usually mapped to uniform buffers in GLSL class CbufNode final { public: |