Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 77f0abb8c5ca019311f590e7becc0840d1f7fb4b
https://github.com/WebKit/WebKit/commit/77f0abb8c5ca019311f590e7becc0840d1f7fb4b
Author: Tadeu Zagallo <[email protected]>
Date: 2023-05-23 (Tue, 23 May 2023)
Changed paths:
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/TypeStore.cpp
M Source/WebGPU/WGSL/TypeStore.h
M Source/WebGPU/WGSL/Types.cpp
M Source/WebGPU/WGSL/Types.h
Log Message:
-----------
[WGSL] Add function types
https://bugs.webkit.org/show_bug.cgi?id=257136
rdar://109667649
Reviewed by Dan Glastonbury.
Create types for user-defined functions and introduce them into the typing
context.
This is the first step for allowing calls to user-defined functions.
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/TypeStore.cpp:
(WGSL::TypeStore::functionType):
* Source/WebGPU/WGSL/TypeStore.h:
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::dump const):
* Source/WebGPU/WGSL/Types.h:
Canonical link: https://commits.webkit.org/264413@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes