Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow WebGPU to compile non-WGSL source
https://bugs.webkit.org/show_bug.cgi?id=247657 <radar://102116179> Reviewed by NOBODY (OOPS!). 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):
- Loading branch information
1 parent
052d5b6
commit a45ca42
Showing
2 changed files
with
35 additions
and
16 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