15#include <vsg/core/ref_ptr.h>
17#include <vsg/commands/Command.h>
18#include <vsg/nodes/Node.h>
33 template<
class N,
class V>
34 static void t_traverse(
N& node,
V&
visitor)
36 for (
auto& child : node.children) child->accept(
visitor);
46 void write(
Output& output)
const override;
48 using Children = std::vector<ref_ptr<vsg::Command>>;
53 children.push_back(child);
56 void compile(
Context& context)
override;
CommandBuffer encapsulates VkCommandBuffer.
Definition CommandBuffer.h:27
int compare(const Object &rhs) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
Definition ConstVisitor.h:172
RecordTraversal traverses a scene graph doing view frustum culling and invoking state/commands to rec...
Definition RecordTraversal.h:69
std container adapter for allocating with MEMORY_AFFINITY_NODES
Definition Allocator.h:138