Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WGSL] Add support for struct constructors #13807

Conversation

tadeuzagallo
Copy link
Member

@tadeuzagallo tadeuzagallo commented May 12, 2023

65a2d2e

[WGSL] Add support for struct constructors
https://bugs.webkit.org/show_bug.cgi?id=256704
rdar://109265280

Reviewed by Myles C. Maxfield and Dan Glastonbury.

Add type checking and code generation for struct constructors.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/struct.wgsl: Added.
* Source/WebGPU/WGSL/tests/valid/struct.wgsl: Added.

Canonical link: https://commits.webkit.org/264066@main

02108de

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
βœ… πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  tv-sim
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch
βœ… πŸ›  watch-sim

@tadeuzagallo tadeuzagallo self-assigned this May 12, 2023
@tadeuzagallo tadeuzagallo added the WebGPU For bugs in WebGPU label May 12, 2023
Copy link
Contributor

@litherum litherum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right.

Copy link
Contributor

@djg djg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘

@tadeuzagallo tadeuzagallo added the merge-queue Applied to send a pull request to merge-queue label May 15, 2023
https://bugs.webkit.org/show_bug.cgi?id=256704
rdar://109265280

Reviewed by Myles C. Maxfield and Dan Glastonbury.

Add type checking and code generation for struct constructors.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/struct.wgsl: Added.
* Source/WebGPU/WGSL/tests/valid/struct.wgsl: Added.

Canonical link: https://commits.webkit.org/264066@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/WGSL-Add-support-for-struct-constructors branch from 02108de to 65a2d2e Compare May 15, 2023 08:53
@webkit-commit-queue
Copy link
Collaborator

Committed 264066@main (65a2d2e): https://commits.webkit.org/264066@main

Reviewed commits have been landed. Closing PR #13807 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 65a2d2e into WebKit:main May 15, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebGPU For bugs in WebGPU
Projects
None yet
5 participants