Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 957d1095264db62e6f99a8cd53d9fc10e0260336
      
https://github.com/WebKit/WebKit/commit/957d1095264db62e6f99a8cd53d9fc10e0260336
  Author: Kimmo Kinnunen <[email protected]>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUCreateImpl.cpp
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUImpl.cpp
    M Source/WebGPU/WebGPU/APIConversions.h
    M Source/WebGPU/WebGPU/Instance.mm
    M Source/WebGPU/WebGPU/PresentationContextIOSurface.mm
    M Source/WebGPU/WebGPU/ShaderModule.mm
    M Source/WebGPU/WebGPU/WebGPU.h
    M Source/WebGPU/WebGPU/WebGPUExt.h

  Log Message:
  -----------
  WebGPU: Use chain mechanism for Cocoa specific API extensions in WebGPU.h
https://bugs.webkit.org/show_bug.cgi?id=324954
rdar://188173096

Reviewed by Mike Wyrzykowski.

Use the WGPUChainedStruct mechanism to pass in platform specific
extension data to functions that need it.
Revert back to WGPUShaderSourceWGSL to provide the WGSL source text
with the chain structure. ANGLE/WebGPU is using the standard webgpu.h
API it to pass the shader text.

This is work towards being able to use WebGPU.h in ANGLE/WebGPU that
uses the standard webgpu.h interface.

* Source/WebCore/Modules/WebGPU/Implementation/WebGPUCreateImpl.cpp:
(WebCore::WebGPU::create):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp:
(WebCore::WebGPU::DeviceImpl::createShaderModule):
(WebCore::WebGPU::convertToBacking):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUImpl.cpp:
(WebCore::WebGPU::GPUImpl::createPresentationContext):
* Source/WebGPU/WebGPU/APIConversions.h:
(WebGPU::findChainedStruct):
* Source/WebGPU/WebGPU/Instance.mm:
(WebGPU::Instance::create):
* Source/WebGPU/WebGPU/PresentationContextIOSurface.mm:
(WebGPU::PresentationContextIOSurface::create):
* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::findShaderModuleParameters):
* Source/WebGPU/WebGPU/WebGPU.h:
* Source/WebGPU/WebGPU/WebGPUExt.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to