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

metal: improve push | pop_debug_marker #2537

Merged
merged 1 commit into from
Mar 15, 2022
Merged

metal: improve push | pop_debug_marker #2537

merged 1 commit into from
Mar 15, 2022

Conversation

jinleili
Copy link
Contributor

@jinleili jinleili commented Mar 13, 2022

Description
Invoking push | pop_debug_marker, entry_any may create empty blit command encoder, which results in warnings and incorrect debug_group hierarchy relationships:

`Blit Encoder "Oxxxx" has no work encoded to it` (Issue) Your app created an encoder that had no work encoded to it. Creating an empty encoder causes unnecessary CPU overhead and potentiallv bandwidth usage.

boids_push_debug_marker

Testing
Tested boids example on macOS and iOS:
boids_push_debug_marker-1

@kvark kvark merged commit ba07db9 into gfx-rs:master Mar 15, 2022
@kvark
Copy link
Member

kvark commented Mar 15, 2022

Great work, thank you!

cwfitzgerald pushed a commit that referenced this pull request Oct 25, 2023
Restore `negative_index` test in `tests/wgsl-errors.rs`, as part of
the `invalid_arrays` test function.
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.

2 participants