Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with overlay views using multiple render graphs in the same window #310

Closed
theodoregoetz opened this issue May 10, 2024 · 3 comments

Comments

@theodoregoetz
Copy link
Contributor

theodoregoetz commented May 10, 2024

In PR #309 I tried to split up the multiviews example into separate render graphs. The problem this example shows is that the secondary rendergraph clears the whole screen instead of it's designated smaller render area and I'm not sure how to get it working like the multiviews example.

Here is a screenshot for vsgmultirendergraphs:

image

This is expected (from vsgmultiviews):

image

@robertosfield
Copy link
Collaborator

Run your example with the Vulkan Validation Layer on (WindowTraints::debugLayer set to true) to see if there are any errors reported.

@robertosfield
Copy link
Collaborator

As a general comment, this issue sounds with using RenderGraph/RenderPass to target a portion of window and failing is something we've hit up against before. For what I recall some drivers/hardware do what you expect while others fail - it's a characteristic of Vulkan/driver rather than a bug on the VSG/application side.

For these reasons multiple views it's best to use multiple vsg::View within a single vsg::RenderGraph.

@robertosfield
Copy link
Collaborator

I've just looked up the github history for vsgmultiviews example - I originally wrote it with both a multiple RenderGraph code path and a multiple vsg::View within a single RenderGraph but had to remove the multiple RenderGraph codepath as it just wasn't reliable across platforms:

5c19f16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants