Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 307b45cf7dd7626d2713a03b75b07cd0c139d176
      
https://github.com/WebKit/WebKit/commit/307b45cf7dd7626d2713a03b75b07cd0c139d176
  Author: Tadeu Zagallo <[email protected]>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M Source/WTF/wtf/CMakeLists.txt
    M Source/WTF/wtf/RangeSet.h
    M Source/WTF/wtf/SwiftBridging.h
    M Source/WTF/wtf/ThreadSafeWeakPtr.h
    M Source/WebGPU/Configurations/WebGPU.xcconfig
    M Source/WebGPU/WebGPU/Buffer.h
    M Source/WebGPU/WebGPU/Buffer.swift
    M Source/WebGPU/WebGPU/CommandBuffer.h
    M Source/WebGPU/WebGPU/CommandEncoder.h
    M Source/WebGPU/WebGPU/CommandEncoder.swift
    M Source/WebGPU/WebGPU/ComputePassEncoder.h
    M Source/WebGPU/WebGPU/Device.h
    M Source/WebGPU/WebGPU/QuerySet.h
    M Source/WebGPU/WebGPU/Queue.h
    M Source/WebGPU/WebGPU/Queue.swift
    M Source/WebGPU/WebGPU/RenderPassEncoder.h
    M Source/WebGPU/WebGPU/ShaderModule.h
    M Source/WebGPU/WebGPU/Texture.h
    M Source/WebGPU/WebGPU/TextureView.h
    M Source/WebGPU/WebGPU/WebGPU.h

  Log Message:
  -----------
  [WebGPU] Enable Swift strict-memory-safety
https://bugs.webkit.org/show_bug.cgi?id=295584
rdar://155326286

Reviewed by Mike Wyrzykowski.

Enable the Swift strict-memory-safe flag, along with the related experimental 
features.
For now, only fix what's trivial and sprinkle unsafe everywhere else. That 
gives us a
good overview what needs to be addressed going forward.

* Source/WTF/wtf/RangeSet.h:
* Source/WTF/wtf/ThreadSafeWeakPtr.h:
* Source/WebGPU/Configurations/WebGPU.xcconfig:
* Source/WebGPU/WebGPU/Buffer.h:
* Source/WebGPU/WebGPU/Buffer.swift:
(WebGPU.copy(from:offset:)):
(Buffer_copyFrom_thunk(_:from:offset:)):
(WebGPU.bufferContents): Deleted.
* Source/WebGPU/WebGPU/CommandBuffer.h:
* Source/WebGPU/WebGPU/CommandEncoder.h:
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(CommandEncoder_runClearEncoder_thunk(_:attachmentsToClear:depthStencilAttachmentToClear:depthAttachmentToClear:stencilAttachmentToClear:depthClearValue:stencilClearValue:existingEncoder:)):
(CommandEncoder_finish_thunk(_:descriptor:)):
(WebGPU.finish(_:)):
(WebGPU.errorValidatingCopyTextureToTexture(_:destination:copySize:)):
(WebGPU.errorValidatingCopyTextureToBuffer(_:destination:copySize:)):
(WebGPU.errorValidatingImageCopyBuffer(_:)):
(WebGPU.errorValidatingCopyBufferToTexture(_:destination:copySize:)):
(WebGPU.errorValidatingRenderPassDescriptor(_:)):
(WebGPU.errorValidatingTimestampWrites(_:)):
(WebGPU.errorValidatingComputePassDescriptor(_:)):
(WebGPU.beginRenderPass(_:)):
(WebGPU.copyTextureToBuffer(_:destination:copySize:)):
(WebGPU.copyBufferToTexture(_:destination:copySize:)):
(WebGPU.copyTextureToTexture(_:destination:copySize:)):
(WebGPU.beginComputePass(_:)):
* Source/WebGPU/WebGPU/ComputePassEncoder.h:
* Source/WebGPU/WebGPU/Device.h:
* Source/WebGPU/WebGPU/QuerySet.h:
* Source/WebGPU/WebGPU/Queue.h:
* Source/WebGPU/WebGPU/Queue.swift:
(WebGPU.writeBuffer(_:bufferOffset:data:)):
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
* Source/WebGPU/WebGPU/ShaderModule.h:
* Source/WebGPU/WebGPU/Texture.h:
* Source/WebGPU/WebGPU/TextureView.h:
* Source/WebGPU/WebGPU/WebGPU.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to