[webkit-changes] [WebKit/WebKit] 0c5b39: [WebGPUSwift] Swift Implementation of copyTextureT...

nmahendru noreply at github.com
Tue Dec 3 19:13:02 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0c5b39edcadd77400638b26bb53961c37423cb01
      https://github.com/WebKit/WebKit/commit/0c5b39edcadd77400638b26bb53961c37423cb01
  Author: Nitin Mahendru <nitinmahendru at apple.com>
  Date:   2024-12-03 (Tue, 03 Dec 2024)

  Changed paths:
    M Source/WebGPU/WebGPU/CommandEncoder.h
    M Source/WebGPU/WebGPU/CommandEncoder.mm
    M Source/WebGPU/WebGPU/CommandEncoder.swift
    M Source/WebGPU/WebGPU/Internal/WebGPUSwiftInternal.h

  Log Message:
  -----------
  [WebGPUSwift] Swift Implementation of copyTextureToBuffer
rdar://140317728
https://bugs.webkit.org/show_bug.cgi?id=283458

Reviewed by Geoffrey Garen.

1-to-1 replacement of the ObjectiveC version.

roundUpToMultipleOfNonPowerOfTwo had to be specialized as Swift does not support
templates.

Testing: Manual test using:
./LayoutTests/http/tests/webgpu/webgpu/api/operation/command_buffer/image_copy.html

* Source/WebGPU/WebGPU/CommandEncoder.h:
* Source/WebGPU/WebGPU/CommandEncoder.mm:
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.hasValidDimensions(_:width:height:depth:)):
(WebGPU.copyTextureToBuffer(_:destination:copySize:)):
* Source/WebGPU/WebGPU/Internal/WebGPUSwiftInternal.h:
(roundUpToMultipleOfNonPowerOfTwo_CheckedUInt32_UnsignedLongInt):

Canonical link: https://commits.webkit.org/287323@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