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

Don't depend on validation layers for setting object names #5345

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

DJMcNab
Copy link
Contributor

@DJMcNab DJMcNab commented Mar 5, 2024

Connections
Fixes #3913

Description
Before this PR, you needed to use the VALIDATION instance flag to get labels set on Vulkan objects properly, because of an oversight in the PR linked in the issue.
This changes it so that only the DEBUG flag is required again

Testing
I tested the water example in renderdoc (in release mode, so no debug_assertions) with WGPU_DEBUG=1 with and without this PR, and saw that the labels were correctly present after this PR.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown N/A
    • --target wasm32-unknown-emscripten N/A
  • Run cargo xtask test to run tests. Same failures as on main
  • Add change to CHANGELOG.md. See simple instructions inside file.

@DJMcNab DJMcNab requested a review from a team as a code owner March 5, 2024 17:32
Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine - thank you!

@jimblandy jimblandy merged commit 5162fd4 into gfx-rs:trunk Mar 6, 2024
27 checks passed
@DJMcNab DJMcNab deleted the debug-without-validation branch March 6, 2024 20:48
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

Successfully merging this pull request may close these issues.

On Vulkan, debug labels shouldn't require validation layer
2 participants