-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shader validation tests on the usage of @blend_src (#3839)
* Add shader validation tests on the usage of `@blend_src` This patch adds shader validation tests on the usage of `@blend_src`. According to the latest WGSL SPEC, - `@blend_src` can only be used on a struct member with `@location` attribute - If `@blend_src` is declared on a member of a struct, the struct must exactly have two members with `@location` attribute: one has `@location(0) @blend_src(0)` and another has `@location(0) @blend_src(1)`. * Add more tests on different variable declarations * Address reviewer's comments
- Loading branch information
1 parent
9504c75
commit e80efbc
Showing
1 changed file
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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