-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] shader,validation,expression,unary,address_of_and_indirection:…
…* is failing https://bugs.webkit.org/show_bug.cgi?id=270095 rdar://123636841 Reviewed by Mike Wyrzykowski. Move the logic for address of and indirection from a type declaration into the type checker in order to separate it from the arithmetic operators, and implement the additional validation: - don't allow taking the address of a vector component - don't allow taking the address of textures and samplers * Source/WebGPU/WGSL/TypeCheck.cpp: (WGSL::TypeChecker::visit): * Source/WebGPU/WGSL/TypeDeclarations.rb: * Source/WebGPU/WGSL/TypeStore.cpp: (WGSL::ReferenceKey::encode const): (WGSL::TypeStore::referenceType): * Source/WebGPU/WGSL/TypeStore.h: * Source/WebGPU/WGSL/Types.h: Canonical link: https://commits.webkit.org/275373@main
- Loading branch information
1 parent
3211e58
commit 8529f01
Showing
5 changed files
with
52 additions
and
19 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
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
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
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
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