diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-12-10 13:01:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 13:01:41 +0100 |
commit | 6edadef96d57cb021d0131929d5a122ae102ad9e (patch) | |
tree | e7f42fb2af3b1d83665725db9034d8fb6f3d6c78 /src/video_core/shader/node.h | |
parent | Merge pull request #3205 from ReinUsesLisp/vk-device (diff) | |
parent | vk_shader_decompiler: Fix build issues on old gcc versions (diff) | |
download | yuzu-6edadef96d57cb021d0131929d5a122ae102ad9e.tar yuzu-6edadef96d57cb021d0131929d5a122ae102ad9e.tar.gz yuzu-6edadef96d57cb021d0131929d5a122ae102ad9e.tar.bz2 yuzu-6edadef96d57cb021d0131929d5a122ae102ad9e.tar.lz yuzu-6edadef96d57cb021d0131929d5a122ae102ad9e.tar.xz yuzu-6edadef96d57cb021d0131929d5a122ae102ad9e.tar.zst yuzu-6edadef96d57cb021d0131929d5a122ae102ad9e.zip |
Diffstat (limited to 'src/video_core/shader/node.h')
-rw-r--r-- | src/video_core/shader/node.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h index b2576bdd6..1a4d28ae9 100644 --- a/src/video_core/shader/node.h +++ b/src/video_core/shader/node.h @@ -172,6 +172,7 @@ enum class OperationCode { EmitVertex, /// () -> void EndPrimitive, /// () -> void + InvocationId, /// () -> int YNegate, /// () -> float LocalInvocationIdX, /// () -> uint LocalInvocationIdY, /// () -> uint @@ -213,13 +214,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 +544,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: |