When I read test in test.cpp
builder.setSideEffect();
FrameGraph::Builder &FrameGraph::Builder::setSideEffect() {
m_passNode.m_hasSideEffect = true;
return *this;
}
and
FrameGraphResource FrameGraph::Builder::write(FrameGraphResource id) {
assert(m_frameGraph.isValid(id));
if (m_frameGraph._getResourceEntry(id).isImported()) setSideEffect();
...
}
What is the m_hasSideEffect use for?
And the FrameGraph-Example just a little complex, I am just a fresh hand. Can you update an example about how to draw a box with index buffer? :D Thanks~
When I read
testintest.cppand
What is the
m_hasSideEffectuse for?And the
FrameGraph-Examplejust a little complex, I am just a fresh hand. Can you update an example about how to draw a box with index buffer? :D Thanks~