peachsim 0.1.1684 → 0.1.1700

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/cli/bridge-flow-runner.ts +61 -39
  2. package/cli/commands/agent-wrapper.ts +21 -10
  3. package/cli/commands/control.ts +27 -7
  4. package/cli/commands/coverage-swift.ts +72 -5
  5. package/cli/commands/coverage.ts +1 -1
  6. package/cli/commands/detect.ts +17 -4
  7. package/cli/commands/inspect/actions.ts +1 -0
  8. package/cli/commands/maestro-compare.ts +25 -99
  9. package/cli/commands/screenshot.ts +12 -0
  10. package/cli/help-core.ts +3 -4
  11. package/cli/maestro-compare.ts +172 -4
  12. package/cli/outbound-endpoints.ts +2 -10
  13. package/detox/index.ts +15 -0
  14. package/detox/launch-permissions.ts +169 -0
  15. package/dist-lib/agent-daemon-client.cjs +2 -2
  16. package/dist-lib/agent-events.cjs +2 -2
  17. package/dist-lib/attached-projects.cjs +2 -2
  18. package/dist-lib/auth/shared-session.cjs +2 -2
  19. package/dist-lib/backend-origin.cjs +2 -2
  20. package/dist-lib/beta.cjs +2 -2
  21. package/dist-lib/beta.mjs +1 -1
  22. package/dist-lib/bridge-constants.cjs +2 -2
  23. package/dist-lib/bridge-contract-input.cjs +2 -2
  24. package/dist-lib/bridge-contract-input.mjs +1 -1
  25. package/dist-lib/bridge-contract.cjs +2 -2
  26. package/dist-lib/bridge-contract.mjs +1 -1
  27. package/dist-lib/bundle-channel.cjs +6729 -3591
  28. package/dist-lib/capture-contract.cjs +2 -2
  29. package/dist-lib/capture-contract.mjs +1 -1
  30. package/dist-lib/cloud-contract.cjs +2 -2
  31. package/dist-lib/cloud-contract.mjs +1 -1
  32. package/dist-lib/cloud-test-args.cjs +2 -2
  33. package/dist-lib/cloud-test-args.mjs +1 -1
  34. package/dist-lib/cloud.cjs +2 -2
  35. package/dist-lib/cloud.mjs +1 -1
  36. package/dist-lib/config.cjs +2 -2
  37. package/dist-lib/config.mjs +1 -1
  38. package/dist-lib/detox/index.cjs +104 -3
  39. package/dist-lib/dev-bundle-resolution.cjs +208 -44
  40. package/dist-lib/expo-swift-bundle.cjs +3475 -2137
  41. package/dist-lib/expo-swift-metadata.cjs +2 -2
  42. package/dist-lib/expo-swift-metadata.mjs +1 -1
  43. package/dist-lib/home-paths.cjs +2 -2
  44. package/dist-lib/host/bridge-host.cjs +8970 -3652
  45. package/dist-lib/host/fetch-proxy-handler.cjs +332 -40
  46. package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
  47. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  48. package/dist-lib/host/replacement-module-handler.cjs +2 -2
  49. package/dist-lib/host/websocket-proxy.cjs +2 -2
  50. package/dist-lib/index.cjs +469 -143
  51. package/dist-lib/jump-to-source-babel.cjs +2 -2
  52. package/dist-lib/jump-to-source-native.cjs +2 -2
  53. package/dist-lib/kotlin-host.cjs +2 -2
  54. package/dist-lib/menu.cjs +2 -2
  55. package/dist-lib/menu.mjs +1 -1
  56. package/dist-lib/metro-fingerprint-registry.cjs +2 -2
  57. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  58. package/dist-lib/metro-production-bundle.cjs +2 -2
  59. package/dist-lib/metro-production-bundle.mjs +1 -1
  60. package/dist-lib/metro.cjs +465 -139
  61. package/dist-lib/native-app-identity-project.cjs +209 -86
  62. package/dist-lib/native-app-identity-project.mjs +251 -116
  63. package/dist-lib/native-app-identity.cjs +2 -2
  64. package/dist-lib/native-app-identity.mjs +1 -1
  65. package/dist-lib/native-firebase-metadata.cjs +2 -2
  66. package/dist-lib/native-firebase-metadata.mjs +1 -1
  67. package/dist-lib/plist.cjs +2 -2
  68. package/dist-lib/plist.mjs +1 -1
  69. package/dist-lib/profiles.cjs +2 -2
  70. package/dist-lib/public-brand.cjs +2 -2
  71. package/dist-lib/public-origins-lib-esm.json +27 -23
  72. package/dist-lib/public-origins-lib.json +221 -88
  73. package/dist-lib/react-native-host-modules.cjs +2 -2
  74. package/dist-lib/react-native-host-modules.mjs +1 -1
  75. package/dist-lib/reap-browser.cjs +2 -2
  76. package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
  77. package/dist-lib/sdk.cjs +3 -3
  78. package/dist-lib/sdk.mjs +2 -2
  79. package/dist-lib/skills.cjs +20997 -16596
  80. package/dist-lib/swift-compile.cjs +3075 -459
  81. package/dist-lib/swift-compile.mjs +3028 -415
  82. package/dist-lib/swift-package.cjs +131 -69
  83. package/dist-lib/swift-package.mjs +126 -68
  84. package/dist-lib/swift-submit.cjs +2 -2
  85. package/dist-lib/swift-submit.mjs +1 -1
  86. package/dist-lib/swift-toolchain.cjs +31 -4
  87. package/dist-lib/swift.cjs +2 -2
  88. package/dist-lib/vite-swift.cjs +5049 -1704
  89. package/dist-lib/vite.cjs +261 -58
  90. package/dist-lib/worklet-executable.cjs +8 -5
  91. package/dist-lib/worklet-executable.mjs +7 -4
  92. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
  93. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
  94. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  95. package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
  96. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
  97. package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
  98. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  99. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  100. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
  101. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
  102. package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
  103. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
  104. package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
  105. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
  106. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  107. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
  108. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
  109. package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
  110. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  111. package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
  112. package/package.json +1 -1
  113. package/runtime-companion.json +1 -1
  114. package/scripts/dev-server-scanner.ts +4 -0
  115. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
  116. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
  117. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
  118. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
  119. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
  120. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
  121. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
  122. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
  123. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
  124. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
  125. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
  126. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
  127. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
  128. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
  129. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
  130. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
  131. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
  132. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
  133. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
  134. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
  135. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
  136. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
  137. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
  138. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
  139. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
  140. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
  141. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
  142. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
  143. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
  144. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
  145. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
  146. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
  147. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
  148. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
  149. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
  150. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
  151. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
  152. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
  153. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
  154. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
  155. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
  156. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
  157. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
  158. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
  159. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
  160. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
  161. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
  162. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
  163. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
  164. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
  165. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
  166. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
  167. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
  168. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
  169. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
  170. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
  171. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
  172. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
  173. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
  174. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
  175. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
  176. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
  177. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
  178. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
  179. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
  180. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
  181. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
  182. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -220
  183. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
  184. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
  185. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
  186. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
  187. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
  188. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
  189. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
  190. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
  191. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
  192. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
  193. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
  194. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
  195. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
  196. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
  197. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
  198. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
  199. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
  200. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
  201. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
  202. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
  203. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
  204. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
  205. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
  206. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
  207. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
  208. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
  209. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
  210. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
  211. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
  212. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
  213. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
  214. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +98 -3
  215. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
  216. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
  217. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
  218. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
  219. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
  220. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
  221. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
  222. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
  223. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
  224. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
  225. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
  226. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
  227. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
  228. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
  229. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
  230. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
  231. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
  232. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
  233. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
  234. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
  235. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
  236. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
  237. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
  238. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
  239. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
  240. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
  241. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
  242. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
  243. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
  244. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
  245. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
  246. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
  247. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
  248. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
  249. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
  250. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
  251. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
  252. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
  253. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
  254. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
  255. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
  256. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
  257. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
  258. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
  259. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
  260. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
  261. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
  262. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
  263. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
  264. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
  265. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
  266. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
  267. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
  268. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
  269. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
  270. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
  271. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
  272. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
  273. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
  274. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
  275. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
  276. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
  277. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
  278. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
  279. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
  280. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
  281. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
  282. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
  283. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
  284. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
  285. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
  286. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
  287. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
  288. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
  289. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
  290. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
  291. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
  292. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
  293. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
  294. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
  295. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
  296. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
  297. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
  298. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
  299. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
  300. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
  301. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
  302. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
  303. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
  304. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
  305. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
  306. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
  307. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
  308. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
  309. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
  310. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
  311. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
  312. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
  313. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
  314. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
  315. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
  316. package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
  317. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
  318. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
  319. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
  320. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
  321. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
  322. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
  323. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
  324. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
  325. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
  326. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
  327. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
  328. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
  329. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
  330. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
  331. package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
  332. package/sdk/ios/usr/include/complex.h +167 -0
  333. package/sdk/ios/usr/include/copyfile.h +143 -0
  334. package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
  335. package/sdk/ios/usr/include/mach/mach_types.h +1 -0
  336. package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
  337. package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
  338. package/sdk/ios/usr/include/malloc/_platform.h +80 -0
  339. package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
  340. package/sdk/ios/usr/include/malloc/malloc.h +768 -0
  341. package/sdk/ios/usr/include/math.h +835 -2
  342. package/sdk/ios/usr/include/os/availability.h +168 -6
  343. package/sdk/ios/usr/include/os/base.h +351 -0
  344. package/sdk/ios/usr/include/os/clock.h +18 -0
  345. package/sdk/ios/usr/include/os/lock.h +232 -10
  346. package/sdk/ios/usr/include/os/log.h +521 -38
  347. package/sdk/ios/usr/include/os/object.h +320 -3
  348. package/sdk/ios/usr/include/os/trace.h +492 -0
  349. package/sdk/ios/usr/include/os/trace_base.h +167 -0
  350. package/sdk/ios/usr/include/os/workgroup.h +37 -0
  351. package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
  352. package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
  353. package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
  354. package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
  355. package/sdk/ios/usr/include/sys/cdefs.h +38 -1
  356. package/sdk/ios/wasm/include/unistd.h +3 -0
  357. package/skills/contrast/SKILL.md +3 -0
  358. package/src/codex-client.ts +11 -6
  359. package/src/dev-bundle-resolution.ts +124 -48
  360. package/src/expo-native-workspace.ts +176 -0
  361. package/src/expo-swift-host.ts +161 -26
  362. package/src/expo-swift-ready.ts +14 -28
  363. package/src/expoSwiftContract.ts +4 -1
  364. package/src/generated/swift-c-predefines.json +2044 -0
  365. package/src/host/bridge-host.ts +5 -0
  366. package/src/installed-package-versions.ts +14 -1
  367. package/src/metro-project-root.ts +44 -33
  368. package/src/native-app-identity-project.ts +1 -0
  369. package/src/nitro-adapter.lock.json +916 -10
  370. package/src/nitro-adapter.ts +33 -24
  371. package/src/nitro-bundle.ts +108 -21
  372. package/src/nitro-compile.ts +36 -5
  373. package/src/nitro-source.ts +13 -3
  374. package/src/nitroAdapterContract.ts +100 -20
  375. package/src/nitroContract.ts +18 -2
  376. package/src/node-http-fetch.ts +116 -0
  377. package/src/packageVersionsContract.ts +46 -0
  378. package/src/serverDiscoveryContract.ts +1 -0
  379. package/src/settingsContract.ts +0 -30
  380. package/src/swift-binary-modules.ts +20 -5
  381. package/src/swift-compile.ts +598 -81
  382. package/src/swift-coverage/package.ts +3 -1
  383. package/src/swift-coverage/xcode-assets.ts +66 -5
  384. package/src/swift-coverage/xcode-packages.ts +11 -6
  385. package/src/swift-host.ts +347 -60
  386. package/src/swift-objc-compile.ts +52 -10
  387. package/src/swift-objc-metadata.ts +2 -2
  388. package/src/swift-objc-platform.ts +2 -2
  389. package/src/swift-objc-standin.ts +53 -13
  390. package/src/swift-package-manifest.ts +151 -28
  391. package/src/swift-package.ts +158 -75
  392. package/src/swift-packages.ts +141 -44
  393. package/src/swift-source-file.ts +10 -15
  394. package/src/swift-source-pods.ts +126 -41
  395. package/src/swift-standin-digest.ts +77 -0
  396. package/src/swift-standin-emit.ts +40 -4
  397. package/src/swift-standins.ts +154 -31
  398. package/src/swift-submit.ts +5 -0
  399. package/src/swift-toolchain.ts +38 -0
  400. package/src/swiftContract.ts +168 -75
  401. package/src/target-matcher.ts +15 -2
  402. package/src/vite-plugin.ts +0 -10
  403. package/src/worklet-executable.ts +7 -3
  404. package/src/xcode-json-project.ts +14 -2
  405. package/src/xcode-project.ts +215 -100
  406. package/src/settings-flags.ts +0 -107
@@ -0,0 +1,279 @@
1
+ //
2
+ // MTLArgument.h
3
+ // Metal
4
+ //
5
+ // Copyright (c) 2014 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <Metal/MTLDefines.h>
10
+ #import <Metal/MTLTexture.h>
11
+ #import <Metal/MTLCommandEncoder.h>
12
+ #import <Metal/MTLDataType.h>
13
+ #import <Metal/MTLTensor.h>
14
+
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ typedef NS_ENUM(NSUInteger, MTLIndexType) {
19
+ MTLIndexTypeUInt16 = 0,
20
+ MTLIndexTypeUInt32 = 1,
21
+ } API_AVAILABLE(macos(10.11), ios(8.0));
22
+
23
+ @class MTLArgument;
24
+
25
+ /*!
26
+ @enum MTLBindingsType
27
+ @abstract The type of a resource binding.
28
+
29
+ @constant MTLBindingTypeBuffer
30
+ This binding represents a buffer.
31
+
32
+ @constant MTLBindingTypeThreadgroupMemory
33
+ This binding represents threadgroup memory.
34
+
35
+ @constant MTLBindingTypeTexture
36
+ This binding represents a texture.
37
+
38
+ @constant MTLBindingTypeSampler
39
+ This binding represents a sampler.
40
+
41
+ @constant MTLBindingTypeImageblockData
42
+ This binding represents an image block data.
43
+
44
+ @constant MTLBindingTypeImageblock
45
+ This binding represents an image block.
46
+
47
+ @constant MTLBindingTypeVisibleFunctionTable
48
+ This binding represents a visible function table object.
49
+
50
+ @constant MTLBindingTypePrimitiveAccelerationStructure
51
+ This binding represents a primitive acceleration structure object.
52
+
53
+ @constant MTLBindingTypeInstanceAccelerationStructure
54
+ This binding represents an instance acceleration structure object.
55
+
56
+ @constant MTLBinidngTypeIntersectionFunctionTable
57
+ This binding represents an intersection function table object.
58
+
59
+ @constant MTLBindingTypeObjectPayload
60
+ This binding represents an object payload.
61
+
62
+ @constant MTLBindingTypeTensor
63
+ This binding represents a tensor object.
64
+ */
65
+ typedef NS_ENUM(NSInteger, MTLBindingType) {
66
+ MTLBindingTypeBuffer = 0,
67
+ MTLBindingTypeThreadgroupMemory = 1,
68
+ MTLBindingTypeTexture = 2,
69
+ MTLBindingTypeSampler = 3,
70
+ MTLBindingTypeImageblockData = 16,
71
+ MTLBindingTypeImageblock = 17,
72
+ MTLBindingTypeVisibleFunctionTable = 24,
73
+ MTLBindingTypePrimitiveAccelerationStructure = 25,
74
+ MTLBindingTypeInstanceAccelerationStructure = 26,
75
+ MTLBindingTypeIntersectionFunctionTable = 27,
76
+ MTLBindingTypeObjectPayload = 34,
77
+ } API_AVAILABLE(macos(11.0), ios(14.0));
78
+
79
+ /*!
80
+ @enum MTLArgumentType
81
+ @abstract The type for an input to a MTLRenderPipelineState or a MTLComputePipelineState
82
+
83
+ @constant MTLArgumentTypeBuffer
84
+ This input is a MTLBuffer
85
+
86
+ @constant MTLArgumentTypeThreadgroupMemory
87
+ This input is a pointer to the threadgroup memory.
88
+
89
+ @constant MTLArgumentTypeTexture
90
+ This input is a MTLTexture.
91
+
92
+ @constant MTLArgumentTypeSampler
93
+ This input is a sampler.
94
+ */
95
+ typedef NS_ENUM(NSUInteger, MTLArgumentType) {
96
+
97
+ MTLArgumentTypeBuffer = 0,
98
+ MTLArgumentTypeThreadgroupMemory= 1,
99
+ MTLArgumentTypeTexture = 2,
100
+ MTLArgumentTypeSampler = 3,
101
+
102
+ MTLArgumentTypeImageblockData API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 16,
103
+ MTLArgumentTypeImageblock API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 17,
104
+ MTLArgumentTypeVisibleFunctionTable API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 24,
105
+ MTLArgumentTypePrimitiveAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 25,
106
+ MTLArgumentTypeInstanceAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 26,
107
+ MTLArgumentTypeIntersectionFunctionTable API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 27,
108
+ } API_DEPRECATED_WITH_REPLACEMENT("MTLBindingType", macos(10.11, 13.0), ios(8.0, 16.0));
109
+
110
+
111
+ typedef NS_ENUM(NSUInteger, MTLBindingAccess) {
112
+ MTLBindingAccessReadOnly = 0,
113
+ MTLBindingAccessReadWrite = 1,
114
+ MTLBindingAccessWriteOnly = 2,
115
+ MTLArgumentAccessReadOnly API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccessReadOnly", macos(10.13, 14.0), ios(8.0, 17.0)) = MTLBindingAccessReadOnly,
116
+ MTLArgumentAccessReadWrite API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccessReadWrite", macos(10.13, 14.0), ios(8.0, 17.0)) = MTLBindingAccessReadWrite,
117
+ MTLArgumentAccessWriteOnly API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccessWriteOnly", macos(10.13, 14.0), ios(8.0, 17.0)) = MTLBindingAccessWriteOnly,
118
+ };
119
+
120
+ typedef MTLBindingAccess MTLArgumentAccess API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccess", macos(10.11, 14.0), ios(8.0, 17.0));
121
+
122
+
123
+ @class MTLStructType;
124
+ @class MTLArrayType;
125
+ @class MTLTextureReferenceType;
126
+ @class MTLPointerType;
127
+
128
+ MTL_EXPORT API_AVAILABLE(macos(10.13), ios(11.0))
129
+ @interface MTLType : NSObject
130
+ @property (readonly) MTLDataType dataType;
131
+ @end
132
+
133
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
134
+ @interface MTLStructMember : NSObject
135
+
136
+ @property (readonly) NSString *name;
137
+ @property (readonly) NSUInteger offset;
138
+ @property (readonly) MTLDataType dataType;
139
+
140
+
141
+ - (nullable MTLStructType *)structType;
142
+ - (nullable MTLArrayType *)arrayType;
143
+
144
+ - (nullable MTLTextureReferenceType *)textureReferenceType API_AVAILABLE(macos(10.13), ios(11.0));
145
+ - (nullable MTLPointerType *)pointerType API_AVAILABLE(macos(10.13), ios(11.0));
146
+
147
+ @property (readonly) NSUInteger argumentIndex API_AVAILABLE(macos(10.13), ios(11.0));
148
+
149
+
150
+ @end
151
+
152
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
153
+ @interface MTLStructType : MTLType
154
+
155
+ @property (readonly) NSArray <MTLStructMember *> *members;
156
+
157
+ - (nullable MTLStructMember *)memberByName:(NSString *)name;
158
+
159
+ @end
160
+
161
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
162
+ @interface MTLArrayType : MTLType
163
+
164
+ @property (readonly) MTLDataType elementType;
165
+
166
+ @property (readonly) NSUInteger arrayLength;
167
+ @property (readonly) NSUInteger stride;
168
+ @property (readonly) NSUInteger argumentIndexStride API_AVAILABLE(macos(10.13), ios(11.0));
169
+ - (nullable MTLStructType *)elementStructType;
170
+ - (nullable MTLArrayType *)elementArrayType;
171
+ - (nullable MTLTextureReferenceType *)elementTextureReferenceType API_AVAILABLE(macos(10.13), ios(11.0));
172
+ - (nullable MTLPointerType *)elementPointerType API_AVAILABLE(macos(10.13), ios(11.0));
173
+
174
+
175
+ @end
176
+
177
+ MTL_EXPORT API_AVAILABLE(macos(10.13), ios(11.0))
178
+ @interface MTLPointerType : MTLType
179
+
180
+ @property (readonly) MTLDataType elementType; // MTLDataTypeFloat, MTLDataTypeFloat4, MTLDataTypeStruct, ...
181
+ @property (readonly) MTLBindingAccess access;
182
+ @property (readonly) NSUInteger alignment; // min alignment for the element data
183
+ @property (readonly) NSUInteger dataSize; // sizeof(T) for T *argName
184
+
185
+ @property (readonly) BOOL elementIsArgumentBuffer API_AVAILABLE(macos(10.13), ios(11.0));
186
+
187
+ - (nullable MTLStructType *)elementStructType API_AVAILABLE(macos(10.13), ios(11.0));
188
+ - (nullable MTLArrayType *)elementArrayType API_AVAILABLE(macos(10.13), ios(11.0));
189
+
190
+ @end
191
+
192
+ MTL_EXPORT API_AVAILABLE(macos(10.13), ios(11.0))
193
+ @interface MTLTextureReferenceType : MTLType
194
+
195
+ @property (readonly) MTLDataType textureDataType; // half, float, int, or uint.
196
+ @property (readonly) MTLTextureType textureType; // texture1D, texture2D...
197
+ @property (readonly) MTLBindingAccess access; // read, write, read-write
198
+ @property (readonly) BOOL isDepthTexture; // true for depth textures
199
+
200
+ @end
201
+
202
+
203
+
204
+ /*!
205
+ MTLArgument
206
+ */
207
+ MTL_EXPORT NS_SWIFT_SENDABLE
208
+ API_DEPRECATED_WITH_REPLACEMENT("MTLBinding", macos(10.11, 13.0), ios(8.0, 16.0))
209
+ @interface MTLArgument : NSObject
210
+
211
+ @property (readonly) NSString *name;
212
+ @property (readonly) MTLArgumentType type;
213
+ @property (readonly) MTLBindingAccess access;
214
+ @property (readonly) NSUInteger index;
215
+
216
+ @property (readonly, getter=isActive) BOOL active;
217
+
218
+ // for buffer arguments
219
+ @property (readonly) NSUInteger bufferAlignment; // min alignment of starting offset in the buffer
220
+ @property (readonly) NSUInteger bufferDataSize; // sizeof(T) for T *argName
221
+ @property (readonly) MTLDataType bufferDataType; // MTLDataTypeFloat, MTLDataTypeFloat4, MTLDataTypeStruct, ...
222
+ @property (readonly, nullable) MTLStructType *bufferStructType;
223
+ @property (readonly, nullable) MTLPointerType *bufferPointerType API_AVAILABLE(macos(10.13), ios(11.0));
224
+
225
+ // for threadgroup memory arguments
226
+ @property (readonly) NSUInteger threadgroupMemoryAlignment;
227
+ @property (readonly) NSUInteger threadgroupMemoryDataSize; // sizeof(T) for T *argName
228
+
229
+ // for texture arguments
230
+ @property (readonly) MTLTextureType textureType; // texture1D, texture2D...
231
+ @property (readonly) MTLDataType textureDataType; // half, float, int, or uint.
232
+ @property (readonly) BOOL isDepthTexture API_AVAILABLE(macos(10.12), ios(10.0)); // true for depth textures
233
+ @property (readonly) NSUInteger arrayLength API_AVAILABLE(macos(10.13), ios(10.0));
234
+
235
+ @end
236
+
237
+ MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0)) NS_SWIFT_SENDABLE
238
+ @protocol MTLBinding<NSObject>
239
+ @property (readonly) NSString *name;
240
+ @property (readonly) MTLBindingType type;
241
+ @property (readonly) MTLBindingAccess access;
242
+ @property (readonly) NSUInteger index;
243
+
244
+ @property (readonly, getter=isUsed) BOOL used;
245
+ @property (readonly, getter=isArgument) BOOL argument;
246
+ @end
247
+
248
+ MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
249
+ @protocol MTLBufferBinding<MTLBinding>
250
+ @property (readonly) NSUInteger bufferAlignment; // min alignment of starting offset in the buffer
251
+ @property (readonly) NSUInteger bufferDataSize; // sizeof(T) for T *argName
252
+ @property (readonly) MTLDataType bufferDataType; // MTLDataTypeFloat, MTLDataTypeFloat4, MTLDataTypeStruct, ...
253
+ @property (readonly, nullable) MTLStructType *bufferStructType;
254
+ @property (readonly, nullable) MTLPointerType *bufferPointerType;
255
+ @end
256
+
257
+ MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
258
+ @protocol MTLThreadgroupBinding<MTLBinding>
259
+ @property (readonly) NSUInteger threadgroupMemoryAlignment;
260
+ @property (readonly) NSUInteger threadgroupMemoryDataSize; // sizeof(T) for T *argName
261
+ @end
262
+
263
+ MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
264
+ @protocol MTLTextureBinding<MTLBinding>
265
+ @property (readonly) MTLTextureType textureType; // texture1D, texture2D...
266
+ @property (readonly) MTLDataType textureDataType; // half, float, int, or uint.
267
+ @property (readonly, getter=isDepthTexture) BOOL depthTexture; // true for depth textures
268
+ @property (readonly) NSUInteger arrayLength;
269
+ @end
270
+
271
+ MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
272
+ @protocol MTLObjectPayloadBinding<MTLBinding>
273
+ @property (readonly) NSUInteger objectPayloadAlignment; // min alignment of starting offset in the buffer
274
+ @property (readonly) NSUInteger objectPayloadDataSize; // sizeof(T) for T *argName
275
+ @end
276
+
277
+
278
+ NS_ASSUME_NONNULL_END
279
+
@@ -0,0 +1,199 @@
1
+ //
2
+ // MTLArgumentEncoder.h
3
+ // Metal
4
+ //
5
+ // Copyright (c) 2016 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <Metal/MTLDefines.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+ @protocol MTLDevice;
13
+ @protocol MTLBuffer;
14
+ @protocol MTLTexture;
15
+ @protocol MTLSamplerState;
16
+ @protocol MTLRenderPipelineState;
17
+ @protocol MTLComputePipelineState;
18
+ @protocol MTLIndirectCommandBuffer;
19
+ @protocol MTLVisibleFunctionTable;
20
+ @protocol MTLAccelerationStructure;
21
+ @protocol MTLIntersectionFunctionTable;
22
+
23
+ /*
24
+ @brief
25
+ When calling functions with an `attributeStrides:` parameter on a render
26
+ or compute command encoder, this value must be provided for the binding
27
+ points that are either not part of the set of MTLBufferLayoutDescriptor,
28
+ or whose stride values in the descriptor is not set to
29
+ `MTLBufferLayoutStrideDynamic`
30
+ */
31
+ API_AVAILABLE(macos(14.0), ios(17.0))
32
+ static const NSUInteger MTLAttributeStrideStatic = NSUIntegerMax;
33
+
34
+ /*!
35
+ * @protocol MTLArgumentEncoder
36
+ * @discussion MTLArgumentEncoder encodes buffer, texture, sampler, and constant data into a buffer.
37
+ */
38
+ API_AVAILABLE(macos(10.13), ios(11.0))
39
+ @protocol MTLArgumentEncoder <NSObject>
40
+
41
+ /*!
42
+ @property device
43
+ @abstract The device this argument encoder was created against.
44
+ */
45
+ @property (readonly) id <MTLDevice> device;
46
+
47
+ /*!
48
+ @property label
49
+ @abstract A string to help identify this object.
50
+ */
51
+ @property (nullable, copy, atomic) NSString *label;
52
+
53
+ /*!
54
+ * @property encodedLength
55
+ * @abstract The number of bytes required to store the encoded resource bindings.
56
+ */
57
+ @property (readonly) NSUInteger encodedLength;
58
+
59
+ /*!
60
+ * @property alignment
61
+ * @abstract The alignment in bytes required to store the encoded resource bindings.
62
+ */
63
+ @property (readonly) NSUInteger alignment;
64
+
65
+ /*!
66
+ * @method setArgumentBuffer:offset:
67
+ * @brief Sets the destination buffer and offset at which the arguments will be encoded.
68
+ */
69
+ - (void)setArgumentBuffer:(nullable id <MTLBuffer>)argumentBuffer offset:(NSUInteger)offset;
70
+
71
+ /*!
72
+ * @method setArgumentBuffer:offset:arrayElement:
73
+ * @brief Sets the destination buffer, starting offset and specific array element arguments will be encoded into. arrayElement represents
74
+ the desired element of IAB array targetted by encoding
75
+ */
76
+ - (void)setArgumentBuffer:(nullable id <MTLBuffer>)argumentBuffer startOffset:(NSUInteger)startOffset arrayElement:(NSUInteger)arrayElement;
77
+
78
+ /*!
79
+ * @method setBuffer:offset:atIndex:
80
+ * @brief Set a buffer at the given bind point index.
81
+ */
82
+ - (void)setBuffer:(nullable id <MTLBuffer>)buffer offset:(NSUInteger)offset atIndex:(NSUInteger)index;
83
+
84
+ /*!
85
+ * @method setBuffers:offsets:withRange:
86
+ * @brief Set an array of buffers at the given bind point index range.
87
+ */
88
+ - (void)setBuffers:(const id <MTLBuffer> __nullable [__nonnull])buffers offsets:(const NSUInteger [__nonnull])offsets withRange:(NSRange)range;
89
+
90
+ /*!
91
+ * @method setTexture:atIndex:
92
+ * @brief Set a texture at the given bind point index.
93
+ */
94
+ - (void)setTexture:(nullable id <MTLTexture>)texture atIndex:(NSUInteger)index;
95
+
96
+ /*!
97
+ * @method setTextures:withRange:
98
+ * @brief Set an array of textures at the given bind point index range.
99
+ */
100
+ - (void)setTextures:(const id <MTLTexture> __nullable [__nonnull])textures withRange:(NSRange)range;
101
+
102
+ /*!
103
+ * @method setSamplerState:atIndex:
104
+ * @brief Set a sampler at the given bind point index.
105
+ */
106
+ - (void)setSamplerState:(nullable id <MTLSamplerState>)sampler atIndex:(NSUInteger)index;
107
+
108
+ /*!
109
+ * @method setSamplerStates:withRange:
110
+ * @brief Set an array of samplers at the given bind point index range.
111
+ */
112
+ - (void)setSamplerStates:(const id <MTLSamplerState> __nullable [__nonnull])samplers withRange:(NSRange)range;
113
+
114
+ /*!
115
+ * @method constantDataAtIndex:
116
+ * @brief Returns a pointer to the constant data at the given bind point index.
117
+ */
118
+ - (void*)constantDataAtIndex:(NSUInteger)index;
119
+
120
+
121
+ /*!
122
+ * @method setRenderPipelineState:atIndex
123
+ * @brief Sets a render pipeline state at a given bind point index
124
+ */
125
+ - (void)setRenderPipelineState:(nullable id <MTLRenderPipelineState>)pipeline atIndex:(NSUInteger)index API_AVAILABLE(macos(10.14), macCatalyst(13.0), ios(13.0));
126
+
127
+ /*!
128
+ * @method setRenderPipelineStates:withRange
129
+ * @brief Set an array of render pipeline states at a given bind point index range
130
+ */
131
+ - (void)setRenderPipelineStates:(const id <MTLRenderPipelineState> __nullable [__nonnull])pipelines withRange:(NSRange)range API_AVAILABLE(macos(10.14), macCatalyst(13.0), ios(13.0));
132
+
133
+ /*!
134
+ * @method setComputePipelineState:atIndex
135
+ * @brief Sets a compute pipeline state at a given bind point index
136
+ */
137
+ - (void)setComputePipelineState:(nullable id <MTLComputePipelineState>)pipeline atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
138
+
139
+ /*!
140
+ * @method setComputePipelineStates:withRange
141
+ * @brief Set an array of compute pipeline states at a given bind point index range
142
+ */
143
+ - (void)setComputePipelineStates:(const id <MTLComputePipelineState> __nullable [__nonnull])pipelines withRange:(NSRange)range API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
144
+
145
+ /*!
146
+ * @method setIndirectCommandBuffer:atIndex
147
+ * @brief Sets an indirect command buffer at a given bind point index
148
+ */
149
+ - (void)setIndirectCommandBuffer:(nullable id <MTLIndirectCommandBuffer>)indirectCommandBuffer atIndex:(NSUInteger)index API_AVAILABLE(macos(10.14), ios(12.0));
150
+
151
+ /*!
152
+ * @method setIndirectCommandBuffers:withRange:
153
+ * @brief Set an array of indirect command buffers at the given bind point index range.
154
+ */
155
+ - (void)setIndirectCommandBuffers:(const id <MTLIndirectCommandBuffer> __nullable [__nonnull])buffers withRange:(NSRange)range API_AVAILABLE(macos(10.14), ios(12.0));
156
+
157
+ - (void)setAccelerationStructure:(nullable id <MTLAccelerationStructure>)accelerationStructure atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
158
+
159
+ /*!
160
+ * @method newArgumentEncoderForBufferAtIndex:
161
+ * @brief Returns a pointer to a new MTLArgumentEncoder that can be used to encode the an argument buffer
162
+ * in the buffer associated with a given index.
163
+ * Returns nil if the resource at the given index is not an argument buffer.
164
+ */
165
+ - (nullable id<MTLArgumentEncoder>)newArgumentEncoderForBufferAtIndex:(NSUInteger)index API_AVAILABLE(macos(10.13), ios(11.0));
166
+
167
+
168
+
169
+
170
+ /*!
171
+ * @method setVisibleFunctionTable:atIndex:
172
+ * @brief Set a visible function table at the given buffer index
173
+ */
174
+ - (void)setVisibleFunctionTable:(nullable id <MTLVisibleFunctionTable>)visibleFunctionTable atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
175
+
176
+ /*!
177
+ * @method setVisibleFunctionTables:withRange:
178
+ * @brief Set visible function tables at the given buffer index range
179
+ */
180
+ - (void)setVisibleFunctionTables:(const id <MTLVisibleFunctionTable> __nullable [__nonnull])visibleFunctionTables withRange:(NSRange)range API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
181
+
182
+ /*!
183
+ * @method setIntersectionFunctionTable:atIndex:
184
+ * @brief Set an intersection function table at the given buffer index
185
+ */
186
+ - (void)setIntersectionFunctionTable:(nullable id <MTLIntersectionFunctionTable>)intersectionFunctionTable atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
187
+
188
+ /*!
189
+ * @method setIntersectionFunctionTables:withRange:
190
+ * @brief Set intersection function tables at the given buffer index range
191
+ */
192
+ - (void)setIntersectionFunctionTables:(const id <MTLIntersectionFunctionTable> __nullable [__nonnull])intersectionFunctionTables withRange:(NSRange)range API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
193
+
194
+
195
+
196
+ @end
197
+
198
+ NS_ASSUME_NONNULL_END
199
+
@@ -0,0 +1,142 @@
1
+ //
2
+ // MTLBinaryArchive.h
3
+ // Metal
4
+ //
5
+ // Copyright (c) 2020 Apple Inc. All rights reserved.
6
+ //
7
+
8
+
9
+ #import <Metal/MTLDefines.h>
10
+ #import <Metal/MTLDevice.h>
11
+ @class MTLComputePipelineDescriptor;
12
+ @class MTLRenderPipelineDescriptor;
13
+ @class MTLTileRenderPipelineDescriptor;
14
+
15
+ NS_ASSUME_NONNULL_BEGIN
16
+
17
+ MTL_EXTERN NSErrorDomain const MTLBinaryArchiveDomain API_AVAILABLE(macos(11.0), ios(14.0));
18
+
19
+ typedef NS_ENUM(NSUInteger, MTLBinaryArchiveError)
20
+ {
21
+ MTLBinaryArchiveErrorNone = 0,
22
+ MTLBinaryArchiveErrorInvalidFile = 1,
23
+ MTLBinaryArchiveErrorUnexpectedElement = 2,
24
+ MTLBinaryArchiveErrorCompilationFailure = 3,
25
+ MTLBinaryArchiveErrorInternalError API_AVAILABLE(macos(13.0), ios(16.0)) = 4,
26
+ } API_AVAILABLE(macos(11.0), ios(14.0));
27
+
28
+ /*!
29
+ @class MTLBinaryArchiveDescriptor
30
+ @abstract A class used to indicate how an archive should be created
31
+ */
32
+ MTL_EXPORT API_AVAILABLE(macos(11.0), ios(14.0))
33
+ @interface MTLBinaryArchiveDescriptor : NSObject <NSCopying>
34
+
35
+ /*!
36
+ @property url
37
+ @abstract The file URL from which to open a MTLBinaryArchive, or nil to create an empty MTLBinaryArchive.
38
+ */
39
+ @property (readwrite, nullable, nonatomic, copy) NSURL *url;
40
+
41
+ @end
42
+
43
+ /*!
44
+ @protocol MTLBinaryArchive
45
+ @abstract A container of pipeline state descriptors and their associated compiled code.
46
+ @discussion A MTLBinaryArchive allows to persist compiled pipeline state objects for a device, which can be used to skip recompilation on a subsequent run of the app.
47
+ One or more archives may be supplied in the descriptor of a pipeline state, allowing the device to attempt to look up compiled code in them before performing compilation.
48
+ If no archives are provided, or no archives contain the requested content, the pipeline state is created by compiling the code as usual.
49
+ Note that software updates of the OS or device drivers may cause the archive to become outdated, causing the lookup to fail and the usual path performing on-demand compilation is taken.
50
+ A MTLBinaryArchive is populated by adding functions from pipeline state descriptors to it, indicating which compiled code should be persisted in the archive.
51
+ Once all desired pipeline state descriptors have been added, use serializeToURL:error: to write the contents for the current device to disk.
52
+ MTLBinaryArchive files generated for multiple different devices can be combined using the "lipo" tool into a single archive, which can then be shipped with the application.
53
+ It is possible to maintain different archive files for different contexts; for example each level in a game may use a different cache object.
54
+ Note: Metal maintains a separate cache of pipeline states on behalf of each app that contains all compiled code; this cache is populated as compilation occurs.
55
+ This cache will automatically accelerate pipeline state creation after a pipeline is created for the first time.
56
+ Use MTLBinaryArchive to augment that cache by accelerating pipeline state creation even on the first run of an app.
57
+ Updating a MTLBinaryArchive at runtime in a shipping app configuration is not recommended; such a scenario requires corruption resiliency, careful storage space management and may cache hard-to-reproduce errors.
58
+ These kind of issues are handled transparently by the Metal maintained cache, therefore we recommend that MTLBinaryArchive is populated during development time and shipped as an asset.
59
+ */
60
+ API_AVAILABLE(macos(11.0), ios(14.0))
61
+ @protocol MTLBinaryArchive <NSObject>
62
+
63
+ /*!
64
+ @property label
65
+ @abstract A string to help identify this object.
66
+ */
67
+ @property (nullable, copy, atomic) NSString *label;
68
+
69
+ /*!
70
+ @property device
71
+ @abstract The device this resource was created against. This resource can only be used with this device.
72
+ */
73
+ @property (readonly) id<MTLDevice> device;
74
+
75
+ /*!
76
+ @method addComputePipelineFunctionsWithDescriptor:error:
77
+ @abstract Add the function(s) from a compute pipeline state to the archive.
78
+ @param descriptor The descriptor from which function(s) will be added.
79
+ @param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
80
+ @return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
81
+ */
82
+ - (BOOL) addComputePipelineFunctionsWithDescriptor:(MTLComputePipelineDescriptor*)descriptor error:(NSError**)error;
83
+
84
+ /*!
85
+ @method addRenderPipelineFunctionsWithDescriptor:error:
86
+ @abstract Add the function(s) from a render pipeline state to the archive.
87
+ @param descriptor The descriptor from which function(s) will be added.
88
+ @param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
89
+ @return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
90
+ */
91
+ - (BOOL) addRenderPipelineFunctionsWithDescriptor:(MTLRenderPipelineDescriptor*)descriptor error:(NSError**)error;
92
+
93
+ /*!
94
+ @method addTileRenderPipelineFunctionsWithDescriptor:error:
95
+ @abstract Add the function(s) from a tile render pipeline state to the archive.
96
+ @param descriptor The descriptor from which function(s) will be added.
97
+ @param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
98
+ @return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
99
+ */
100
+ - (BOOL) addTileRenderPipelineFunctionsWithDescriptor:(MTLTileRenderPipelineDescriptor*)descriptor error:(NSError**)error API_AVAILABLE(tvos(14.5));
101
+
102
+ /*!
103
+ @method addMeshRenderPipelineFunctionsWithDescriptor:error:
104
+ @abstract Add the function(s) from a mesh render pipeline state to the archive.
105
+ @param descriptor The descriptor from which function(s) will be added.
106
+ @param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
107
+ @return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
108
+ */
109
+ - (BOOL) addMeshRenderPipelineFunctionsWithDescriptor:(MTLMeshRenderPipelineDescriptor*)descriptor error:(NSError**)error API_AVAILABLE(macos(15.0), ios(18.0));
110
+
111
+
112
+ /*!
113
+ @method addLibraryWithDescriptor:error:
114
+ @abstract Add the function(s) from a stitched library to the archive.
115
+ @param descriptor The stitched library descriptor from which function(s) will be added.
116
+ @param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
117
+ @return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
118
+ */
119
+ - (BOOL) addLibraryWithDescriptor:(MTLStitchedLibraryDescriptor *)descriptor error:(NSError **)error API_AVAILABLE(macos(15.0), ios(18.0));
120
+ /*!
121
+ @method serializeToURL:error:
122
+ @abstract Write the contents of a MTLBinaryArchive to a file.
123
+ @discussion Persisting the archive to a file allows opening the archive on a subsequent instance of the app, making available the contents without recompiling.
124
+ @param url The file URL to which to write the file
125
+ @param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain. Other possible errors can be file access or I/O related.
126
+ @return Whether or not the writing the file succeeded.
127
+ */
128
+ - (BOOL) serializeToURL:(NSURL*)url error:(NSError**)error;
129
+
130
+ /*!
131
+ @method addFunctionWithDescriptor:library:error:
132
+ @abstract Add a `visible` or `intersection` function to the archive.
133
+ @param descriptor The descriptor from which the function will be added.
134
+ @param library Library of functions to add the function from.
135
+ @param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain. Other possible errors can be file access or I/O related.
136
+ @return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
137
+ */
138
+ - (BOOL) addFunctionWithDescriptor:(MTLFunctionDescriptor *)descriptor library:(id<MTLLibrary>)library error:(NSError **)error API_AVAILABLE(macos(12.0), ios(15.0));
139
+
140
+ @end
141
+
142
+ NS_ASSUME_NONNULL_END