22// GraphShims.swift
33// OpenAttributeGraphShims
44
5- #if OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH
5+ #if OPENATTRIBUTEGRAPH_COMPUTE
6+
7+ @_exported public import Compute
8+
9+ public typealias OAGAttributeInfo = AGAttributeInfo
10+ //public typealias OAGCachedValueOptions = AGCachedValueOptions
11+ public typealias OAGChangedValueFlags = AGChangedValueFlags
12+ public typealias OAGInputOptions = AGInputOptions
13+ //public typealias OAGValue = AGValue
14+ public typealias OAGValueOptions = AGValueOptions
15+
16+
17+ extension AnyAttribute {
18+ public typealias Flags = Subgraph . Flags
19+ }
20+
21+ extension AnyAttribute {
22+ public var subgraph2 : Subgraph ? { nil }
23+ }
24+
25+
26+ extension Subgraph {
27+ public typealias ChildFlags = AnyAttribute . Flags
28+ }
29+
30+ extension Graph {
31+ public func startProfiling( ) {
32+
33+ }
34+
35+ public func stopProfiling( ) {
36+
37+ }
38+
39+ public func resetProfile( ) {
40+
41+ }
42+ }
43+
44+ extension _AttributeBody {
45+ public typealias Flags = _AttributeType . Flags
46+ }
47+
48+ extension CachedValueOptions {
49+ public static var _1 : CachedValueOptions = . unprefetched
50+ }
51+
52+ public let attributeGraphEnabled = true
53+ #elseif OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH
654@_exported public import AttributeGraph
755#if os(iOS) && !targetEnvironment(simulator)
856@_exported public import _AttributeGraphDeviceSwiftShims
@@ -19,3 +67,6 @@ public let attributeGraphEnabled = true
1967
2068public let attributeGraphEnabled = false
2169#endif
70+
71+ @available ( * , deprecated, message: " swiftToolchainSupported is always true " )
72+ public let swiftToolchainSupported = true
0 commit comments