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

Allow WebGPU to compile non-WGSL source #6282

Conversation

mwyrzykowski
Copy link
Contributor

@mwyrzykowski mwyrzykowski commented Nov 9, 2022

e951de7

Allow WebGPU to compile non-WGSL source
https://bugs.webkit.org/show_bug.cgi?id=247657
<radar://102116179>

Reviewed by Myles C. Maxfield.

To facilitate testing, use the string passed to createShaderModule for
compiling the MTLLibrary if the WGSL compiler gives a zero length string.

* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::earlyCompileShaderModule):
(WebGPU::Device::createShaderModule):

* Websites/webkit.org/demos/webgpu/scripts/hello-triangle.js:
(async helloTriangle):

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

56e0e0b

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

@mwyrzykowski mwyrzykowski force-pushed the eng/Allow-WebGPU-to-compile-non-WGSL-source branch from a45ca42 to 56e0e0b Compare November 9, 2022 04:47
@mwyrzykowski mwyrzykowski self-assigned this Nov 9, 2022
@mwyrzykowski mwyrzykowski added Other WebGPU For bugs in WebGPU labels Nov 9, 2022
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.

Ok. As long as we can delete this as soon as possible

@mwyrzykowski mwyrzykowski added the merge-queue Applied to send a pull request to merge-queue label Nov 15, 2022
https://bugs.webkit.org/show_bug.cgi?id=247657
<radar://102116179>

Reviewed by Myles C. Maxfield.

To facilitate testing, use the string passed to createShaderModule for
compiling the MTLLibrary if the WGSL compiler gives a zero length string.

* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::earlyCompileShaderModule):
(WebGPU::Device::createShaderModule):

* Websites/webkit.org/demos/webgpu/scripts/hello-triangle.js:
(async helloTriangle):

Canonical link: https://commits.webkit.org/256707@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/Allow-WebGPU-to-compile-non-WGSL-source branch from 56e0e0b to e951de7 Compare November 15, 2022 20:33
@webkit-commit-queue
Copy link
Collaborator

Committed 256707@main (e951de7): https://commits.webkit.org/256707@main

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

@webkit-early-warning-system webkit-early-warning-system merged commit e951de7 into WebKit:main Nov 15, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Nov 15, 2022
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
4 participants