Skip to content

Set the rendering order #1355

Answered by robertosfield
jacky-wang7 asked this question in Q&A
Discussion options

You must be logged in to vote

The VSG records vsg::Command nodes to vsg::/vkCommandBuffer in the order they are traversed, so just put them in a vsg::Group in the order you want them ordered.

If you want high level ordering, for techniques such as render to texture, then you can start looking a vsg::CommandGraph::submitOrder.

$ grep -r submitOrder .
./examples/state/vsgdynamictexture_cs/vsgdynamictexture_cs.cpp:            compute_commandGraph->submitOrder = -1; // make sure the compute_commandGraph is placed before the graphics_commandGraph when it's submitted to the VkQueue.
./examples/app/vsgrendertotexture/vsgrendertotexture.cpp:        rtt_commandGraph->submitOrder = -1; // render before the main_commandGraph
./e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robertosfield
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