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
None as far as I know.
Description
Generating automated documentation à la https://docs.rs is very useful, but currently difficult.
naga lacks information about comments to be too helpful, so this pull requests adds support to parsing those.
Note: I branched off 0.22 because I'm not confident with jumping on the maybe unstable trunk.
Testing
Not much for now, I'm compiling a currently private project based on https://github.com/jannik4/shader_docs to attempt to add documentation strings to it.
Status
Comment
//
comments/* */
commentsast::Struct
naga::Module
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.Test failures
Reminder: I'm branched off tag
wgpu-v22.1.0
, which had mopre flaky tests.New failing tests
shader_compile_error
seems expected as it explicitly handles comments, so we probably want to change the test,but I'm out of my comfort zone to make more analysis, so I'd appreciate instructions :)
CHANGELOG.md
. See simple instructions inside file.