* Some stuff worked on
* Works on MSL
* Ready for test 2
* Fix for a thing lol
* Fixed 2 errors
* Fixed DXC
* Add changelog
* Updated CI to hopefully pass on macOS
* Various fixes
* Some final fixes
* CHanged CI
* Update naga/src/front/wgsl/parse/directive/enable_extension.rs
Co-authored-by: atlv <email@atlasdostal.com>
* Thing
---------
Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
* Fixes#9283 : firstLeadingBit returns signed semantics result instead of unsigned for u32 input 0xFFFFFFFF on Metal backend
* updates snapshots
* added to passing tests
* add no_std support for naga/wgsl-in
* simplify emit_to_string_with_path signature to use &str instead of std::path::Path
* inline hexf-parse
* update Cargo.lock and .deny.toml
* Do provide full path in snapshot error messages.
---------
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Add validation about division by zero in valiator. Plus, fix div/rem on i32 in
const-eval.
Relevant spec <https://gpuweb.github.io/gpuweb/wgsl/#arithmetic-expr> says
"If e1 is most negative value in T, and e2 is -1: ..." which means -MIN / -1 is
an error. This is exercised by CTS.
This only really applies to `[[clip_distances]]` right now, but Teo and
I are pretty sure this is the right order for other attributes we might
add for array types, too.
- Validate `@blend_src` structs in type validation. The spec requires
validating any struct with `@blend_src` attributes, whether or not
it is used by an entry point.
- Remove `@blend_src`-related interface validation that is
redundant with the type validation.
- Dual-source blending requires that there be a single color
attachment.
* fix(naga): validate presence of pipeline constants
Cause an error if a pipeline constant identifier doesn't exist in the shader
CTS change
* webgpu:api,validation,compute_pipeline:overrides,identifier:* : 12/26 (46.15%) -> 26/26 (100%)
* fix: Sort test.lst
* Initial commit
* 3/5 done I think
* Updated naga bin to use new caps
* Made clippy shut up
* Tried to fix dota2 validation error
* HLSL list made, also formatted Cargo.toml
* Made stuff work with snapshots
* Added changelog and GLSL list
* Updated message
* fix(naga): Improve validation of non-constructible types
Fixes#4720
Fixes the test cases in #7393, but not the issue itself
* Zero-constructing texture_2d is no longer caught by front end.
* Define `TypeInner::is_constructible`; use it in `front::wgsl`.
Add a new method `TypeInner::is_constructible`, that determines
whether WGSL considers a type [constructible]. Use this to generate
errors in the WGSL front end. Assert in validation that it matches the
judgment of `Validator::validate_type`.
[constructible]: https://gpuweb.github.io/gpuweb/wgsl/#constructible-types
---------
Co-authored-by: Jim Blandy <jimb@red-bean.com>