Skip to content

Commit 3e55c33

Browse files
committed
Fix build with Swift 6.2 using MemberImportVisibility upcoming feature
1 parent 7d375a9 commit 3e55c33

7 files changed

Lines changed: 6 additions & 7 deletions

File tree

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.7.1
1+
// swift-tools-version:5.8
22

33
import PackageDescription
44

@@ -77,6 +77,7 @@ let package = Package(
7777
// .define("SUBSTRATE_DISABLE_AUTOMATIC_LABELS"),
7878
// .define("SUBSTRATE_USE_PLATFORM_HAZARD_TRACKING"),
7979
// .unsafeFlags(["-enforce-exclusivity=unchecked"])
80+
.enableUpcomingFeature("MemberImportVisibility")
8081
]),
8182
.target(name: "SubstrateUtilities", dependencies: [.product(name: "Atomics", package: "swift-atomics")], exclude: ["CMakeLists.txt"],
8283
swiftSettings: [

Sources/Substrate/RenderGraph/BackendExecution/FrameCommandInfo.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import Foundation
9+
import Atomics
910

1011
struct CommandEncoderInfo: Sendable {
1112
var type: RenderPassType

Sources/Substrate/RenderGraph/BackendExecution/ResourceCommandGenerator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import SubstrateUtilities
9+
import Atomics
910

1011
/// The value to wait for on the event associated with this RenderGraph context.
1112
struct ContextWaitEvent: Sendable {

Sources/Substrate/RenderGraph/Queue.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import SubstrateUtilities
99
import Atomics
1010
import Dispatch
11-
import Foundation
1211
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
1312
import Darwin
1413
#elseif os(Linux)
@@ -24,8 +23,8 @@ public final class QueueRegistry: @unchecked Sendable {
2423

2524
public static let bufferedSubmissionCount = 32
2625

27-
public let lastSubmittedCommands : UnsafeMutablePointer<UInt64.AtomicRepresentation>
28-
public let lastCompletedCommands : UnsafeMutablePointer<UInt64.AtomicRepresentation>
26+
@usableFromInline let lastSubmittedCommands : UnsafeMutablePointer<UInt64.AtomicRepresentation>
27+
@usableFromInline let lastCompletedCommands : UnsafeMutablePointer<UInt64.AtomicRepresentation>
2928
let commandSubmissionTimes : UnsafeMutablePointer<UInt64.AtomicRepresentation>
3029
let commandCompletionTimes : UnsafeMutablePointer<UInt64.AtomicRepresentation>
3130
let commandGPUStartTimes : UnsafeMutablePointer<UInt64.AtomicRepresentation>

Sources/Substrate/RenderGraph/Resources/ArgumentBuffer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Created by Thomas Roughton on 22/02/18.
66
//
77

8-
import Foundation
98
import SubstrateUtilities
109
import Atomics
1110

Sources/Substrate/RenderGraph/Resources/ArgumentBufferArray.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Created by Thomas Roughton on 22/02/18.
66
//
77

8-
import Foundation
98
import SubstrateUtilities
109
import Atomics
1110

Sources/Substrate/RenderGraph/Resources/ResourceRegistries.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import SubstrateUtilities
99
import Dispatch
10-
import Foundation
1110
import Atomics
1211

1312
// Registries in this file fall into two main types.

0 commit comments

Comments
 (0)