Verify debugPrintf specifiers#9641
Draft
evilpie wants to merge 37 commits into
Draft
Conversation
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: atlv <email@atlasdostal.com>
Replace the debugPrintf example with an API spec, link it from the README and crate docs, and add wgpu-gpu/Naga coverage for the extension requirements and validation errors.
Collaborator
There was a problem hiding this comment.
This on its own is very valuable
Contributor
Author
There was a problem hiding this comment.
This is part of the original PR. It would probably make sense to list the supported specifiers explicitly now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Connections
Depends on #9389 by @39ali
Description
C-style printf formats are a well known source of bugs. I thought it would be interesting to verify that the specifiers used in the format string matches the actual provided arguments. I tried to come up with a reasonable subset of specifiers that should work in both Metal and Vulkan.
Testing
I did some testing of format string supported on Vulkan with intel mesa drivers.
Squash or Rebase?
Rebase
Checklist
wgpumay be affected behaviorally.CHANGELOG.mdentries for the user-facing effects of this change are present.