Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0a63f68fa41793b6500cf2f373ee6358e8b52a4d
      
https://github.com/WebKit/WebKit/commit/0a63f68fa41793b6500cf2f373ee6358e8b52a4d
  Author: Kimmo Kinnunen <[email protected]>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M 
Source/WebCore/Modules/WebGPU/Implementation/WebGPUConvertToBackingContext.cpp
    M 
Source/WebCore/Modules/WebGPU/Implementation/WebGPUConvertToBackingContext.h
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUXRBindingImpl.cpp
    M Source/WebGPU/WebGPU/BindGroup.mm
    M Source/WebGPU/WebGPU/BindGroupLayout.h
    M Source/WebGPU/WebGPU/BindGroupLayout.mm
    M Source/WebGPU/WebGPU/Buffer.h
    M Source/WebGPU/WebGPU/Buffer.mm
    M Source/WebGPU/WebGPU/CommandEncoder.swift
    M Source/WebGPU/WebGPU/ComputePassEncoder.mm
    M Source/WebGPU/WebGPU/RenderPipeline.mm
    M Source/WebGPU/WebGPU/ShaderStage.h
    M Source/WebGPU/WebGPU/Texture.h
    M Source/WebGPU/WebGPU/Texture.mm
    M Source/WebGPU/WebGPU/TextureView.h
    M Source/WebGPU/WebGPU/TextureView.mm
    M Source/WebGPU/WebGPU/WebGPU.h
    M Source/WebGPU/WebGPU/WebGPUExt.h
    M Source/WebGPU/WebGPU/WebGPUInternal.h
    M Source/WebGPU/WebGPU/XRBinding.h
    M Source/WebGPU/WebGPU/XRBinding.mm
    M Source/WebGPU/WebGPU/XRProjectionLayer.h
    M Source/WebGPU/WebGPU/XRProjectionLayer.mm

  Log Message:
  -----------
  WebGPU: Rename WGPUTextureUsageFlags to WGPUTextureUsage
https://bugs.webkit.org/show_bug.cgi?id=324787
rdar://188052835

Reviewed by Mike Wyrzykowski.

Rename WGPUTextureUsageFlags to WGPUTextureUsage and make WGPUTextureUsage
not be a enum. This makes them match the standard webgpu.h. Since
WebGPU.h arbitrarily mimics webgpu.h, there is no benefit in deviating.

There is no benefit for a bitfield to be a enum, does not provide any
type safety benefits.

Removes redundant Force32 constants.

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/WebGPUConvertToBackingContext.cpp:
(WebCore::WebGPU::ConvertToBackingContext::convertBufferUsageFlagsToBacking):
(WebCore::WebGPU::ConvertToBackingContext::convertColorWriteFlagsToBacking):
(WebCore::WebGPU::ConvertToBackingContext::convertMapModeFlagsToBacking):
(WebCore::WebGPU::ConvertToBackingContext::convertShaderStageFlagsToBacking):
(WebCore::WebGPU::ConvertToBackingContext::convertTextureUsageFlagsToBacking):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUConvertToBackingContext.h:
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUXRBindingImpl.cpp:
(WebCore::WebGPU::XRBindingImpl::createProjectionLayer):
* Source/WebGPU/WebGPU/BindGroup.mm:
* Source/WebGPU/WebGPU/BindGroupLayout.h:
* Source/WebGPU/WebGPU/BindGroupLayout.mm:
(WebGPU::containsStage):
(WebGPU::Device::createBindGroupLayout):
* Source/WebGPU/WebGPU/Buffer.h:
(WebGPU::Buffer::create):
(WebGPU::Buffer::usage const):
* Source/WebGPU/WebGPU/Buffer.mm:
(WebGPU::storageMode):
(WebGPU::Buffer::Buffer):
(WebGPU::Buffer::errorValidatingMapAsync const):
(WebGPU::Buffer::mapAsync):
(wgpuBufferMapAsync):
(wgpuBufferMapAsyncWithBlock):
(wgpuBufferGetUsage):
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.beginRenderPass(_:)):
* Source/WebGPU/WebGPU/ComputePassEncoder.mm:
(WebGPU::ComputePassEncoder::dispatchIndirect):
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::colorWriteMask):
(WebGPU::convertVisibility):
* Source/WebGPU/WebGPU/ShaderStage.h:
(WebGPU::shaderStage):
* Source/WebGPU/WebGPU/Texture.h:
(WebGPU::Texture::usage const):
* Source/WebGPU/WebGPU/Texture.mm:
(WebGPU::Texture::usage):
(WebGPU::storageMode):
(WebGPU::Texture::errorValidatingTextureViewCreation const):
(WebGPU::Texture::createView):
(wgpuTextureGetUsage):
* Source/WebGPU/WebGPU/TextureView.h:
* Source/WebGPU/WebGPU/TextureView.mm:
(WebGPU::TextureView::usage const):
* Source/WebGPU/WebGPU/WebGPU.h:
* Source/WebGPU/WebGPU/WebGPUExt.h:
* Source/WebGPU/WebGPU/WebGPUInternal.h:
* Source/WebGPU/WebGPU/XRBinding.h:
* Source/WebGPU/WebGPU/XRBinding.mm:
(wgpuBindingCreateXRProjectionLayer):
* Source/WebGPU/WebGPU/XRProjectionLayer.h:
(WebGPU::XRProjectionLayer::create):
(WebGPU::XRProjectionLayer::flags const):
* Source/WebGPU/WebGPU/XRProjectionLayer.mm:
(WebGPU::XRProjectionLayer::XRProjectionLayer):
(WebGPU::XRBinding::createXRProjectionLayer):

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



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

Reply via email to