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

Best Practices: Warn on nonsense combinations of layouts / access masks in ImageMemoryBarriers #2063

Closed
TomOlson opened this issue Jul 27, 2020 · 1 comment
Assignees
Milestone

Comments

@TomOlson
Copy link

The Vulkan Specification description of image memory barriers permits combinations of layouts and access flags that don't have any conceivable use. Because the combinatorics make for a large design space, it is easy to get things wrong and end up with synchronization that doesn't actually do anything. But because the flag combinations are valid, the validation layers don't complain.

It would be helpful if the Best Practices layer could warn on use of layout / access combinations that seem likely to be programmer errors. The Vulkan working group is in the process of documenting what combinations of layouts and access flags are potentially meaningful - we'll comment on the issue when we have something that could be implemented as Best Practices layer checks.

@mark-lunarg
Copy link
Contributor

Updated issue #24. Thanks!

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

No branches or pull requests

3 participants