Skip to content
Discussion options

You must be logged in to vote

framegraph will increment version by 1 each time we call builder.write() so it will create multiple render targets thus rendering opaque meshes onto RT1, transparent meshes onto RT2, particles on RT1 again and then GUI onto RT2.

No. Whenever you call builder.write() you get a new FrameGraphResource handle with incremented version, but the underlying resource is the same as an input resource.
Bumping the version enforces correct execution order.

How do you manage resource which will be written to in multiple passes?

Look at here.
And here you can find a simple pass that draws a skybox over a render target (after opaques deferred pass).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChristianDumancic
Comment options

Answer selected by ChristianDumancic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants