Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e9ac314016c60e85e9e44b886abd48f865fc9512
      
https://github.com/WebKit/WebKit/commit/e9ac314016c60e85e9e44b886abd48f865fc9512
  Author: Chris Dumez <[email protected]>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTBuilder.h
    M Source/WebGPU/WGSL/AST/ASTVisitor.h
    M Source/WebGPU/WGSL/AliasAnalysis.cpp
    M Source/WebGPU/WGSL/GlobalSorting.cpp
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
    M Source/WebGPU/WGSL/Lexer.h
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/Parser.cpp
    M Source/WebGPU/WGSL/TypeStore.h
    M Source/WebGPU/WGSL/Types.cpp
    M Source/WebGPU/WGSL/Types.h
    M Source/WebGPU/WGSL/WGSLEnums.h
    M Source/WebGPU/WebGPU/Adapter.h
    M Source/WebGPU/WebGPU/Adapter.mm
    M Source/WebGPU/WebGPU/BindGroup.h
    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/CommandBuffer.h
    M Source/WebGPU/WebGPU/CommandBuffer.mm
    M Source/WebGPU/WebGPU/CommandEncoder.h
    M Source/WebGPU/WebGPU/CommandEncoder.mm
    M Source/WebGPU/WebGPU/CommandsMixin.h
    M Source/WebGPU/WebGPU/ComputePassEncoder.h
    M Source/WebGPU/WebGPU/ComputePassEncoder.mm
    M Source/WebGPU/WebGPU/ComputePipeline.h
    M Source/WebGPU/WebGPU/ComputePipeline.mm
    M Source/WebGPU/WebGPU/Device.h
    M Source/WebGPU/WebGPU/Device.mm
    M Source/WebGPU/WebGPU/ExternalTexture.h
    M Source/WebGPU/WebGPU/ExternalTexture.mm
    M Source/WebGPU/WebGPU/HardwareCapabilities.h
    M Source/WebGPU/WebGPU/HardwareCapabilities.mm
    M Source/WebGPU/WebGPU/Instance.h
    M Source/WebGPU/WebGPU/Instance.mm
    M Source/WebGPU/WebGPU/PipelineLayout.h
    M Source/WebGPU/WebGPU/PipelineLayout.mm
    M Source/WebGPU/WebGPU/PresentationContext.h
    M Source/WebGPU/WebGPU/PresentationContext.mm
    M Source/WebGPU/WebGPU/QuerySet.h
    M Source/WebGPU/WebGPU/QuerySet.mm
    M Source/WebGPU/WebGPU/Queue.h
    M Source/WebGPU/WebGPU/Queue.mm
    M Source/WebGPU/WebGPU/RenderBundle.h
    M Source/WebGPU/WebGPU/RenderBundle.mm
    M Source/WebGPU/WebGPU/RenderBundleEncoder.h
    M Source/WebGPU/WebGPU/RenderBundleEncoder.mm
    M Source/WebGPU/WebGPU/RenderPassEncoder.h
    M Source/WebGPU/WebGPU/RenderPassEncoder.mm
    M Source/WebGPU/WebGPU/RenderPipeline.h
    M Source/WebGPU/WebGPU/RenderPipeline.mm
    M Source/WebGPU/WebGPU/Sampler.h
    M Source/WebGPU/WebGPU/Sampler.mm
    M Source/WebGPU/WebGPU/ShaderModule.h
    M Source/WebGPU/WebGPU/ShaderModule.mm
    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/XRBinding.h
    M Source/WebGPU/WebGPU/XRBinding.mm
    M Source/WebGPU/WebGPU/XRProjectionLayer.h
    M Source/WebGPU/WebGPU/XRProjectionLayer.mm
    M Source/WebGPU/WebGPU/XRSubImage.h
    M Source/WebGPU/WebGPU/XRSubImage.mm
    M Source/WebGPU/WebGPU/XRView.h
    M Source/WebGPU/WebGPU/XRView.mm

  Log Message:
  -----------
  Adopt NODELETE in more places in Source/WebGPU
https://bugs.webkit.org/show_bug.cgi?id=309241

Reviewed by Geoffrey Garen.

* Source/WebGPU/WGSL/AST/ASTBuilder.h:
* Source/WebGPU/WGSL/AST/ASTVisitor.h:
* Source/WebGPU/WGSL/AliasAnalysis.cpp:
(WGSL::MemoryLocation::parameter):
(WGSL::MemoryLocation::global):
(WGSL::MemoryLocation::local):
(WGSL::MemoryLocation::kind const):
(WGSL::MemoryLocation::id const):
(WGSL::MemoryLocation::isParameter const):
(WGSL::MemoryLocation::isGlobal const):
(WGSL::MemoryLocation::operator== const):
(WGSL::MemoryLocation::hashTableDeletedValue):
(WTF::StringTypeAdapter<WGSL::MemoryLocation>::length const):
(WTF::StringTypeAdapter<WGSL::MemoryLocation>::is8Bit const):
(WGSL::add):
(WGSL::MemoryLocationHashTraits::emptyValue):
(WGSL::MemoryLocationHashTraits::constructDeletedValue):
(WGSL::MemoryLocationHashTraits::isDeletedValue):
* Source/WebGPU/WGSL/GlobalSorting.cpp:
(WGSL::Graph::Edge::source const):
(WGSL::Graph::Edge::target const):
(WGSL::Graph::Edge::operator== const):
(WGSL::Graph::EdgeHashTraits::constructDeletedValue):
(WGSL::Graph::EdgeHashTraits::isDeletedValue):
(WGSL::Graph::EdgeHash::equal):
(WGSL::Graph::Node::index const):
(WGSL::Graph::Node::astNode const):
(WGSL::Graph::Node::incomingEdges):
(WGSL::Graph::Node::outgoingEdges):
(WGSL::Graph::nodes):
(WGSL::Graph::edges):
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::buffersForStage):
(WGSL::convertAccess):
(WGSL::bindingTypeForPrimitive):
(WGSL::textureKindEqualsViewDimension):
(WGSL::depthTextureKindEqualsViewDimension):
(WGSL::storageTextureKindEqualsViewDimension):
* Source/WebGPU/WGSL/Lexer.h:
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::stringBuilder):
(WGSL::Metal::FunctionDefinitionWriter::indent):
(WGSL::Metal::FunctionDefinitionWriter::metalAppleGPUFamily const):
(WGSL::Metal::FunctionDefinitionWriter::shaderValidationEnabled const):
(WGSL::Metal::emitArrayLength):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::TemplateTypes::includes):
(WGSL::TemplateTypes<TT>::includes):
(WGSL::canContinueMultiplicativeExpression):
(WGSL::canContinueBitwiseExpression):
(WGSL::canContinueRelationalExpression):
(WGSL::canContinueShortCircuitAndExpression):
(WGSL::canContinueShortCircuitOrExpression):
(WGSL::canContinueCompoundAssignmentStatement):
(WGSL::toBinaryOperation):
(WGSL::toUnaryOperation):
* Source/WebGPU/WGSL/TypeStore.h:
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::primitivePair):
* Source/WebGPU/WGSL/Types.h:
* Source/WebGPU/WGSL/WGSLEnums.h:
* Source/WebGPU/WebGPU/Adapter.h:
* Source/WebGPU/WebGPU/Adapter.mm:
(wgpuAdapterReference):
* Source/WebGPU/WebGPU/BindGroup.h:
* Source/WebGPU/WebGPU/BindGroup.mm:
(WebGPU::bufferIsPresent):
(WebGPU::samplerIsPresent):
(WebGPU::textureIsPresent):
(WebGPU::textureViewIsPresent):
(WebGPU::metalRenderStage):
(WebGPU::pixelRangeFromPixelFormat):
(WebGPU::hasProperUsageFlags):
(WebGPU::resourceUsageForBindingAcccess):
(WebGPU::valid32bppFloatSampleType):
(WebGPU::validateSamplerType):
(WebGPU::usageForTexture):
(WebGPU::usageForStorageTexture):
(WebGPU::usageForBuffer):
(WebGPU::allowedExternalTextureFormat):
(WebGPU::makePipelineBindGroupKey):
(wgpuBindGroupReference):
* Source/WebGPU/WebGPU/BindGroupLayout.h:
* Source/WebGPU/WebGPU/BindGroupLayout.mm:
(WebGPU::isEqual):
(WebGPU::makeBindGroupLayoutPairIdentifier):
(wgpuBindGroupLayoutReference):
* Source/WebGPU/WebGPU/Buffer.h:
* Source/WebGPU/WebGPU/Buffer.mm:
(WebGPU::validateDescriptor):
(WebGPU::validateCreateBuffer):
(WebGPU::storageMode):
(WebGPU::computeRangeSize):
(WebGPU::verifyIndirectBufferData):
(wgpuBufferReference):
(wgpuBufferCopy):
* Source/WebGPU/WebGPU/CommandBuffer.h:
* Source/WebGPU/WebGPU/CommandBuffer.mm:
(wgpuCommandBufferReference):
* Source/WebGPU/WebGPU/CommandEncoder.h:
* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::loadAction):
(WebGPU::storeAction):
(WebGPU::timestampWriteIndex):
(WebGPU::hasValidDimensions):
(wgpuCommandEncoderReference):
* Source/WebGPU/WebGPU/CommandsMixin.h:
* Source/WebGPU/WebGPU/ComputePassEncoder.h:
* Source/WebGPU/WebGPU/ComputePassEncoder.mm:
(wgpuComputePassEncoderReference):
* Source/WebGPU/WebGPU/ComputePipeline.h:
* Source/WebGPU/WebGPU/ComputePipeline.mm:
(wgpuComputePipelineReference):
* Source/WebGPU/WebGPU/Device.h:
* Source/WebGPU/WebGPU/Device.mm:
* Source/WebGPU/WebGPU/ExternalTexture.h:
* Source/WebGPU/WebGPU/ExternalTexture.mm:
(wgpuExternalTextureReference):
* Source/WebGPU/WebGPU/HardwareCapabilities.h:
* Source/WebGPU/WebGPU/HardwareCapabilities.mm:
(WebGPU::largeReasonableLimit):
(wgpuDefaultLimits):
* Source/WebGPU/WebGPU/Instance.h:
* Source/WebGPU/WebGPU/Instance.mm:
(wgpuInstanceReference):
(wgpuGetProcAddress):
* Source/WebGPU/WebGPU/PipelineLayout.h:
* Source/WebGPU/WebGPU/PipelineLayout.mm:
(wgpuPipelineLayoutReference):
* Source/WebGPU/WebGPU/PresentationContext.h:
* Source/WebGPU/WebGPU/PresentationContext.mm:
(wgpuSurfaceReference):
(wgpuSwapChainReference):
* Source/WebGPU/WebGPU/QuerySet.h:
* Source/WebGPU/WebGPU/QuerySet.mm:
(wgpuQuerySetReference):
* Source/WebGPU/WebGPU/Queue.h:
* Source/WebGPU/WebGPU/Queue.mm:
(WebGPU::maxIndexValueSlow):
(wgpuQueueReference):
* Source/WebGPU/WebGPU/RenderBundle.h:
* Source/WebGPU/WebGPU/RenderBundle.mm:
(wgpuRenderBundleReference):
* Source/WebGPU/WebGPU/RenderBundleEncoder.h:
* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(wgpuRenderBundleEncoderReference):
(wgpuRenderBundleEncoderSetBindGroup):
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::makeKey):
(WebGPU::verticesPerPrimitive):
(wgpuRenderPassEncoderReference):
* Source/WebGPU/WebGPU/RenderPipeline.h:
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::blendOperation):
(WebGPU::blendFactor):
(WebGPU::colorWriteMask):
(WebGPU::frontFace):
(WebGPU::cullMode):
(WebGPU::primitiveType):
(WebGPU::topologyType):
(WebGPU::indexType):
(WebGPU::convertToMTLStencilOperation):
(WebGPU::convertToMTLCompare):
(WebGPU::vertexFormat):
(WebGPU::vertexFormatSize):
(WebGPU::formatType):
(WebGPU::matchesFormat):
(WebGPU::convertBindingType):
(WebGPU::convertSamplerBindingType):
(WebGPU::convertVisibility):
(WebGPU::convertSampleType):
(WebGPU::convertViewDimension):
(WebGPU::convertAccess):
(WebGPU::convertFormat):
(WebGPU::hasAlphaChannel):
(WebGPU::textureFormatAllowedForRetunType):
(WebGPU::componentsForDataType):
(wgpuRenderPipelineReference):
* Source/WebGPU/WebGPU/Sampler.h:
* Source/WebGPU/WebGPU/Sampler.mm:
(WebGPU::validateCreateSampler):
(WebGPU::addressMode):
(WebGPU::minMagFilter):
(WebGPU::mipFilter):
(WebGPU::compareFunction):
(WebGPU::WTF_REQUIRES_LOCK):
(wgpuSamplerReference):
* Source/WebGPU/WebGPU/ShaderModule.h:
* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::findShaderModuleParameters):
(WebGPU::metalDataTypeFromPrimitive):
(WebGPU::vertexFormatTypeFromPrimitive):
(WebGPU::wgslBindingType):
(WebGPU::wgslSamplerType):
(WebGPU::wgslSampleType):
(WebGPU::wgslViewDimension):
(WebGPU::wgslAccess):
(WebGPU::wgslFormat):
(wgpuShaderModuleReference):
* Source/WebGPU/WebGPU/Texture.h:
* Source/WebGPU/WebGPU/Texture.mm:
(WebGPU::depthSpecificFormat):
(WebGPU::stencilSpecificFormat):
(WebGPU::textureViewFormatCompatible):
(WebGPU::storageMode):
(WebGPU::resolvedPixelFormat):
(wgpuTextureReference):
(wgpuTextureUndestroy):
* Source/WebGPU/WebGPU/TextureView.h:
* Source/WebGPU/WebGPU/TextureView.mm:
(wgpuTextureViewReference):
* Source/WebGPU/WebGPU/XRBinding.h:
* Source/WebGPU/WebGPU/XRBinding.mm:
(wgpuXRBindingReference):
* Source/WebGPU/WebGPU/XRProjectionLayer.h:
* Source/WebGPU/WebGPU/XRProjectionLayer.mm:
(wgpuXRProjectionLayerReference):
* Source/WebGPU/WebGPU/XRSubImage.h:
* Source/WebGPU/WebGPU/XRSubImage.mm:
(wgpuXRSubImageReference):
* Source/WebGPU/WebGPU/XRView.h:
* Source/WebGPU/WebGPU/XRView.mm:
(wgpuXRViewReference):

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



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

Reply via email to