[webkit-changes] [WebKit/WebKit] 2ec41e: [WebGPUSwift] Fix a guard check. Also cleanup some...
nmahendru
noreply at github.com
Mon Jan 6 20:37:24 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2ec41ed5b1a69723553cf465bda8164613359a24
https://github.com/WebKit/WebKit/commit/2ec41ed5b1a69723553cf465bda8164613359a24
Author: Nitin Mahendru <nitinmahendru at apple.com>
Date: 2025-01-06 (Mon, 06 Jan 2025)
Changed paths:
M Source/WebGPU/WebGPU/CommandEncoder.swift
Log Message:
-----------
[WebGPUSwift] Fix a guard check. Also cleanup some guard conditions.
https://bugs.webkit.org/show_bug.cgi?id=285492
rdar://142455059
Reviewed by Mike Wyrzykowski.
The guard condition for an early exit is reverse than what it should be.
Fix that.
Also cleanup some if/guard with just an if let.
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.beginRenderPass(_:)):
(WebGPU.copyBufferToBuffer(_:sourceOffset:destination:destinationOffset:size:)):
(WebGPU.copyTextureToTexture(_:destination:copySize:)):
Canonical link: https://commits.webkit.org/288503@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list