37 StateCommands stateCommands;
43 bool contains(
const T value)
const
45 return std::find(stateCommands.begin(), stateCommands.end(), value) != stateCommands.end();
50 stateCommands.push_back(stateCommand);
54 void remove(
const T value)
56 if (
auto itr = std::find(stateCommands.begin(), stateCommands.end(), value); itr != stateCommands.end())
58 stateCommands.erase(itr);
66 template<
class N,
class V>
67 static void t_traverse(N& node, V& visitor)
69 for (
auto& sc : node.stateCommands) sc->accept(visitor);
70 for (
auto& child : node.children) child->accept(visitor);
73 void traverse(
Visitor& visitor)
override { t_traverse(*
this, visitor); }
74 void traverse(ConstVisitor& visitor)
const override { t_traverse(*
this, visitor); }
75 void traverse(RecordTraversal& visitor)
const override
77 for (
auto& child : children) child->accept(visitor);
80 void read(Input& input)
override;
81 void write(Output& output)
const override;
84 virtual ~StateGroup();
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,...
ref_ptr< ArrayState > prototypeArrayState
if the shaders associated with GraphicsPipeline don't treat the array 0 as xyz vertex then provide an...
Definition StateGroup.h:40