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

impl Debug for StagingBelt #2572

Merged
merged 1 commit into from
Apr 2, 2022
Merged

impl Debug for StagingBelt #2572

merged 1 commit into from
Apr 2, 2022

Conversation

kpreid
Copy link
Contributor

@kpreid kpreid commented Apr 2, 2022

Description

This PR adds an explicit impl Debug for StagingBelt. Most wgpu types implement Debug, but StagingBelt doesn't, so I figured it was reasonable to add. The individual Chunks are not included but their counts are.

Testing

I didn't see any unit tests for other Debug impls, so I didn't add one, but I manually tested that the output was reasonable by adding debug printing to a program using wgpu.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Nice!

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) April 2, 2022 15:56
@cwfitzgerald cwfitzgerald merged commit fab11dc into gfx-rs:master Apr 2, 2022
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