Zachary Harrold
e4cc5cb9ad
Use core and alloc instead of std in naga ( #7256 )
...
* Use `core` and `alloc` instead of `std` in `naga`
* Update CHANGELOG.md
* `taplo fmt`
* Fix documentation links to refer to `hashbrown::HashMap`
2025-03-03 16:44:53 -05:00
@brody4hire - C. Jonathan Brody
55c33b0372
update MapErrWithSpan to be pub(crate) trait
2025-01-29 20:22:56 -05:00
@brody4hire - C. Jonathan Brody
a1185b21cc
remove std::error::Error constraint not needed from AddSpan impl
2025-01-29 20:22:56 -05:00
@brody4hire - C. Jonathan Brody
58cbb93213
add blank lines & returned output type comment to MapErrWithSpan
2025-01-29 20:22:56 -05:00
@brody4hire - C. Jonathan Brody
1f2cc66f4e
add blank lines & returned output type comment to AddSpan
2025-01-29 20:22:56 -05:00
@brody4hire - C. Jonathan Brody
d7ed0c5290
keep internal AddSpan trait & impl together
2025-01-29 20:22:56 -05:00
Erich Gubler
6f43ee9f17
fix(naga): use Diagnostic from inner in valid. err. presentation
...
For some reason, the implementation of `Display` for
`ShaderError<WithSpan<ValidationError>>>` is building its own
`Diagnostic` with _only_ the labels populated: no messages or notes.
I don't know why this is, but it seems to have a strict subset of the
information already present in the private implementation of
`WithSpan::diagnostic`.
Fix this by exposing `WithSpan::diagnostic` as `pub(crate)`, and
re-using its output in `impl Display for
ShaderError<WithSpan<ValidationError>>>`.
2024-10-22 14:42:27 -04:00
Erich Gubler
25b2b6afa1
style: newline b/w Span::{UNDEFINED, new}
2024-10-03 10:57:28 -04:00
stefnotch
f874ed061c
Add get_compilation_info ( #5410 )
...
* Add get_compilation_info API
* Rename glsl ParseError to ParseErrors
* Document ParseError label order
* Update line_position to count UTF-8 bytes
2024-04-29 11:35:36 +02:00
Erich Gubler
e8e33ede11
refactor(naga): remove extraneous leading path qualifiers ( #5612 )
...
Implemented by `cargo fix -p naga --lib`.
2024-04-28 16:33:13 +02:00
stefnotch
6a5418b93f
Fix 5385 by updating the documentation ( #5386 )
...
* Fix 5385 by updating the documentation
* Update changelog
2024-03-13 21:30:50 -04:00
Teodor Tanasoaia
a26e4a009a
[naga] remove span and validate features ( #4706 )
2023-11-17 13:37:25 -05:00
Connor Fitzgerald
34e947de4b
Integration of Naga into Repo ( #4296 )
2023-10-25 16:51:36 -04:00
Connor Fitzgerald
5369eec3b2
Move naga to subfolder
2023-10-25 14:25:04 -04:00