Skip to content

What is sideeffect #1

@FuXiii

Description

@FuXiii

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~

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions