[webkit-changes] [WebKit/WebKit] e951de: Allow WebGPU to compile non-WGSL source

mwyrzykowski noreply at github.com
Tue Nov 15 12:34:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e951de773ef0cc42303bcdfa18724bd03e7dff52
      https://github.com/WebKit/WebKit/commit/e951de773ef0cc42303bcdfa18724bd03e7dff52
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

  Changed paths:
    M Source/WebGPU/WebGPU/ShaderModule.mm
    M Websites/webkit.org/demos/webgpu/scripts/hello-triangle.js

  Log Message:
  -----------
  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




More information about the webkit-changes mailing list