Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ff519eabb8a0e7391c9b3d34ff4a40dd759c517a
https://github.com/WebKit/WebKit/commit/ff519eabb8a0e7391c9b3d34ff4a40dd759c517a
Author: Richard Robinson <[email protected]>
Date: 2026-03-01 (Sun, 01 Mar 2026)
Changed paths:
M Source/WebGPU/WebGPU/CommandEncoder.swift
M Source/WebKit/GPUProcess/graphics/Model/USDModel.swift
Log Message:
-----------
Invalid render pass usage leads to crashes in the WebGPU Swift backend
https://bugs.webkit.org/show_bug.cgi?id=308471
rdar://170997914
Reviewed by Mike Wyrzykowski, Lily Spiniolas, and Abrar Rahman Protyasha.
Check that metalDepthStencilTexture is non-nil and has a sampleCount greater
than 0 instead of
assuming it is non-nil and force unwrapping it. This matches the non-Swift
implementation logic.
Also fix a swift-format formatting error in `USDModel.swift`.
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.beginRenderPass(_:)):
* Source/WebKit/GPUProcess/graphics/Model/USDModel.swift:
Canonical link: https://commits.webkit.org/308434@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications