Dynamic command graph for multipass. #1432
Replies: 1 comment 2 replies
-
To change the contents of a Viewer/RecordAndSubmitTask you'd need to use a viewer.deviceWaitIdle() call to make sure all the rendering is complete and then change things. Or if you can just stick a vsg::Switch above the subgraphs you want to toggle. It may be possible to do this individually, so leave the CommandGraph's in place at the top RecordAndSubmitTask level and then just let the VSG decide whether to submit work. I haven't ever tried this though. I'm just looking through CommandGraph and RenderGraph classes, there isn't presently any controls for switch it on/off, perhaps there needs to be. There might be considerations w.r.t threading that might need to take this into account, so it might be more awkward that just adding a bool/mask that is checked each traversal. With tasks like this that try pushing the outer boundaries of the current VSG implementation it can be useful to create a new vsgExamples that attempts to implement the required functionality using existing features, and then each have other members of the community help tweak it to make sure it's robust or cleaner, or for modifications to the core VSG to tried out to simply and clean up the task being carried out by the example. Adding a bool/mask to CommandGraph might be such a modification. One really needs this concrete test cast that illustrates the feature required with a provisional implementation before ones starts changing the core VSG, as it might be that existing functionality works perfectly well, or that the problem being explained by the user really isn't understood correctly by various parties so modifications just don't fix the problem in hand, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am passing an image through multiple filter for processing. Now I want to have the option to enable and disable any part of the pipeline during runtime. How do I do this? Say I am setting up the viewer like this:
Now during the main loop I want to remove the
computeCommandGraph2
and switch thegraphicsCommandGraph1
to a different one. How do I do this?Beta Was this translation helpful? Give feedback.
All reactions