Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9caea52627876c2ea98435fd25736df03559bd69
      
https://github.com/WebKit/WebKit/commit/9caea52627876c2ea98435fd25736df03559bd69
  Author: Kimmo Kinnunen <[email protected]>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUCommandEncoderImpl.cpp
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUQueueImpl.cpp
    M Source/WebGPU/WebGPU/CommandEncoder.h
    M Source/WebGPU/WebGPU/CommandEncoder.mm
    M Source/WebGPU/WebGPU/CommandEncoder.swift
    M Source/WebGPU/WebGPU/Queue.h
    M Source/WebGPU/WebGPU/Queue.mm
    M Source/WebGPU/WebGPU/Texture.h
    M Source/WebGPU/WebGPU/Texture.mm
    M Source/WebGPU/WebGPU/WebGPU.h
    M Source/WebGPU/WebGPU/WebGPUExt.h

  Log Message:
  -----------
  WebGPU: Rename WGPUImageCopyBuffer/Texture, WGPUTextureDataLayout to standard 
webgpu.h names
https://bugs.webkit.org/show_bug.cgi?id=324792
rdar://188055765

Reviewed by Mike Wyrzykowski.

Rename WebGPU.h WGPU* structs to their counterparts in standard webgpu.h
  WGPUImageCopyBuffer -> WGPUTexelCopyBufferInfo
  WGPUImageCopyTexture -> WGPUTexelCopyTextureInfo
  WGPUTextureDataLayout -> WGPUTexelCopyBufferLayout

Since WebGPU.h arbitrarily mimics webgpu.h, there is no benefit in
deviating.

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

* Source/WebCore/Modules/WebGPU/Implementation/WebGPUCommandEncoderImpl.cpp:
(WebCore::WebGPU::CommandEncoderImpl::copyBufferToTexture):
(WebCore::WebGPU::CommandEncoderImpl::copyTextureToBuffer):
(WebCore::WebGPU::CommandEncoderImpl::copyTextureToTexture):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUQueueImpl.cpp:
(WebCore::WebGPU::QueueImpl::writeTexture):
* Source/WebGPU/WebGPU/CommandEncoder.h:
* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::errorValidatingImageCopyBuffer const):
(WebGPU::CommandEncoder::errorValidatingCopyBufferToTexture const):
(WebGPU::CommandEncoder::copyBufferToTexture):
(WebGPU::CommandEncoder::errorValidatingCopyTextureToBuffer const):
(WebGPU::CommandEncoder::clearTextureIfNeeded):
(WebGPU::CommandEncoder::copyTextureToBuffer):
(WebGPU::CommandEncoder::errorValidatingCopyTextureToTexture const):
(WebGPU::CommandEncoder::copyTextureToTexture):
(wgpuCommandEncoderCopyBufferToTexture):
(wgpuCommandEncoderCopyTextureToBuffer):
(wgpuCommandEncoderCopyTextureToTexture):
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(commandEncoderClearTextureIfNeeded(_:destination:slice:)):
(WebGPU.clearTextureIfNeeded(_:slice:)):
(WebGPU.errorValidatingImageCopyBuffer(_:)):
(WebGPU.copyTextureToBuffer(_:destination:copySize:)):
(WebGPU.copyBufferToTexture(_:destination:copySize:)):
(WebGPU.copyTextureToTexture(_:destination:copySize:)):
* Source/WebGPU/WebGPU/Queue.h:
* Source/WebGPU/WebGPU/Queue.mm:
* Source/WebGPU/WebGPU/Texture.h:
* Source/WebGPU/WebGPU/Texture.mm:
(WebGPU::imageCopyTextureSubresourceSize):
(WebGPU::Texture::errorValidatingImageCopyTexture):
(WebGPU::Texture::errorValidatingTextureCopyRange):
(WebGPU::Texture::errorValidatingLinearTextureData):
* Source/WebGPU/WebGPU/WebGPU.h:
* Source/WebGPU/WebGPU/WebGPUExt.h:

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



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

Reply via email to