15 #include <vsg/state/StateCommand.h>
24 template<
class N,
class V>
25 static void t_traverse(N& sc, V& visitor)
27 for (
auto& child : sc.children)
29 if ((visitor.traversalMask & (visitor.overrideMask | child.mask)) != MASK_OFF) child.stateCommand->accept(visitor);
33 void traverse(
Visitor& visitor)
override { t_traverse(*
this, visitor); }
34 void traverse(
ConstVisitor& visitor)
const override { t_traverse(*
this, visitor); }
36 void compile(
Context& context)
override;
39 void read(
Input& input)
override;
40 void write(
Output& output)
const override;
50 std::vector<Child> children;
CommandBuffer encapsulates VkCommandBuffer.
Definition: CommandBuffer.h:27
Definition: ConstVisitor.h:147
Definition: StateSwitch.h:22
Definition: Visitor.h:147
Definition: StateSwitch.h:45