File tree Expand file tree Collapse file tree 6 files changed +10
-12
lines changed
GameMath/3D Types/3D Physics/3D Colliders/Triangles
Audio/Platforms/Backends/CoreAudio
Platforms/Platform Implementations/Apple/AppKit/AppKit Expand file tree Collapse file tree 6 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -209,9 +209,7 @@ let package = Package(
209209 . enableUpcomingFeature( " DeprecateApplicationMain " ) ,
210210
211211 . enableExperimentalFeature( " AccessLevelOnImport " ) ,
212- // .enableExperimentalFeature("StrictConcurrency"),
213- . enableExperimentalFeature( " StrictConcurrency=minimal " ) ,
214- // .enableExperimentalFeature("StrictConcurrency=complete"),
212+ . enableExperimentalFeature( " StrictConcurrency " ) ,
215213 ] )
216214 #if swift(>=6.2)
217215 settings. append ( . enableExperimentalFeature( " IsolatedDeinit " ) )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public struct BasicCollisionAttributes: CollisionAttributesGroup {
9696 get { group1 }
9797 set { group1 = newValue }
9898 }
99- public struct FlagAttributes : CollisionAttributesType , OptionSet {
99+ public struct FlagAttributes : CollisionAttributesType , OptionSet , Sendable {
100100 public typealias RawValue = UInt32
101101 public var rawValue : RawValue
102102 public init ( rawValue: RawValue ) {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ internal final class CABufferReference: AudioBufferBackend {
3838 self . audioBuffer = audioBuffer
3939 Task . detached {
4040 do {
41- guard let located = await Game . shared . platform . locateResource ( from: path) else {
41+ guard let located = await Platform . current . locateResource ( from: path) else {
4242 throw GateEngineError . failedToLocate
4343 }
4444 do { // Allow CoreAudio an chance to load files the way it prefers
@@ -57,7 +57,7 @@ internal final class CABufferReference: AudioBufferBackend {
5757 // If CoreAudio can't load the file fallback to manual below and don't throw any errors
5858 }
5959
60- let data = try await Game . shared . platform . loadResource ( from: path)
60+ let data = try await Platform . current . loadResource ( from: path)
6161 #if canImport(Vorbis)
6262 let lowercasePath = path. lowercased ( )
6363 if lowercasePath. hasSuffix ( " ogg " ) || lowercasePath. hasSuffix ( " oga " ) {
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ final class AppKitWindow: WindowBacking {
210210 }
211211 }
212212
213- nonisolated lazy var displayLink : CVDisplayLink = {
213+ lazy var displayLink : CVDisplayLink = {
214214 var displayLink : CVDisplayLink ?
215215 // Create a display link capable of being used with all active displays
216216 CVDisplayLinkCreateWithActiveCGDisplays ( & displayLink)
@@ -222,8 +222,8 @@ final class AppKitWindow: WindowBacking {
222222 _ flagsIn: CVOptionFlags ,
223223 _ flagsOut: UnsafeMutablePointer < CVOptionFlags > ,
224224 _ displayLinkContext: UnsafeMutableRawPointer ? ) -> CVReturn {
225- let appKitWindow = unsafeBitCast ( displayLinkContext, to: AppKitWindow . self)
226225 Task ( priority: . high) { @MainActor in
226+ let appKitWindow = unsafeBitCast ( displayLinkContext, to: AppKitWindow . self)
227227 if let view = appKitWindow. nsWindowController. window? . contentViewController? . view {
228228 view. needsDisplay = true
229229 }
Original file line number Diff line number Diff line change 541541 }
542542}
543543
544- public struct CanvasElementSpriteFlags : OptionSet {
544+ public struct CanvasElementSpriteFlags : OptionSet , Sendable {
545545 public typealias RawValue = UInt32
546546 public let rawValue : RawValue
547547
@@ -556,7 +556,7 @@ public struct CanvasElementSpriteFlags: OptionSet {
556556 }
557557}
558558
559- public struct CanvasElementTextFlags : OptionSet {
559+ public struct CanvasElementTextFlags : OptionSet , Sendable {
560560 public typealias RawValue = UInt32
561561 public let rawValue : RawValue
562562
@@ -571,7 +571,7 @@ public struct CanvasElementTextFlags: OptionSet {
571571 }
572572}
573573
574- public struct CanvasElementPrimitiveFlags : OptionSet {
574+ public struct CanvasElementPrimitiveFlags : OptionSet , Sendable {
575575 public typealias RawValue = UInt32
576576 public let rawValue : RawValue
577577
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ internal struct SceneDirectionalLight: Hashable {
445445 }
446446}
447447
448- public struct SceneElementFlags : OptionSet , Hashable {
448+ public struct SceneElementFlags : OptionSet , Hashable , Sendable {
449449 public typealias RawValue = UInt32
450450 public let rawValue : RawValue
451451
You can’t perform that action at this time.
0 commit comments