Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 75638ee82857b73c1d02ff2e9d09da8c89cccacc
https://github.com/WebKit/WebKit/commit/75638ee82857b73c1d02ff2e9d09da8c89cccacc
Author: Kimmo Kinnunen <[email protected]>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M Source/WebCore/Modules/WebGPU/Implementation/WebGPUCommandEncoderImpl.cpp
M
Source/WebCore/Modules/WebGPU/Implementation/WebGPUConvertToBackingContext.cpp
M
Source/WebCore/Modules/WebGPU/Implementation/WebGPUConvertToBackingContext.h
M Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp
M Source/WebGPU/WebGPU/CommandEncoder.mm
M Source/WebGPU/WebGPU/CommandEncoder.swift
M Source/WebGPU/WebGPU/RenderPassEncoder.mm
M Source/WebGPU/WebGPU/RenderPipeline.mm
M Source/WebGPU/WebGPU/WebGPU.h
Log Message:
-----------
WebGPU: Stop using std::optional<> in WebGPU.h descriptor structs
https://bugs.webkit.org/show_bug.cgi?id=324969
rdar://188182728
Reviewed by Mike Wyrzykowski.
Stop using std::optional, since the WebGPU.h API is essentially C API.
This brings WebGPU.h closer to the standard webgpu.h.
Import WGPUOptionalBool to replace std::optional<bool> with.
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/WebGPUCommandEncoderImpl.cpp:
(WebCore::WebGPU::CommandEncoderImpl::beginRenderPass):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp:
(WebCore::WebGPU::convertToBacking):
* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::beginRenderPass):
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WGPURenderPassColorAttachment.depthSlice):
(WebGPU.beginRenderPass(_:)):
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::RenderPassEncoder):
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::errorValidatingDepthStencilState):
(WebGPU::Device::createRenderPipeline):
* Source/WebGPU/WebGPU/WebGPU.h:
Canonical link: https://commits.webkit.org/321780@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications