peachsim 0.1.1674 → 0.1.1692

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 (350) hide show
  1. package/cli/commands/control.ts +13 -1
  2. package/cli/commands/coverage-swift.ts +150 -27
  3. package/cli/commands/coverage.ts +219 -20
  4. package/cli/commands/detect.ts +10 -6
  5. package/cli/commands/inspect/actions.ts +1 -0
  6. package/cli/commands/inspect/core.ts +2 -0
  7. package/cli/commands/inspect/wait-ready.ts +7 -0
  8. package/cli/commands/screenshot.ts +12 -0
  9. package/cli/outbound-endpoints.ts +12 -0
  10. package/detox/index.ts +11 -1
  11. package/detox/jest-environment.cjs +14 -0
  12. package/dist-lib/agent-daemon-client.cjs +1 -1
  13. package/dist-lib/agent-events.cjs +1 -1
  14. package/dist-lib/attached-projects.cjs +1 -1
  15. package/dist-lib/auth/shared-session.cjs +1 -1
  16. package/dist-lib/backend-origin.cjs +1 -1
  17. package/dist-lib/beta.cjs +1 -1
  18. package/dist-lib/beta.mjs +1 -1
  19. package/dist-lib/bridge-constants.cjs +1 -1
  20. package/dist-lib/bridge-contract-input.cjs +1 -1
  21. package/dist-lib/bridge-contract-input.mjs +1 -1
  22. package/dist-lib/bridge-contract.cjs +1 -1
  23. package/dist-lib/bridge-contract.mjs +1 -1
  24. package/dist-lib/bundle-channel.cjs +4833 -2432
  25. package/dist-lib/capture-contract.cjs +1 -1
  26. package/dist-lib/capture-contract.mjs +1 -1
  27. package/dist-lib/cloud-contract.cjs +1 -1
  28. package/dist-lib/cloud-contract.mjs +1 -1
  29. package/dist-lib/cloud-test-args.cjs +1 -1
  30. package/dist-lib/cloud-test-args.mjs +1 -1
  31. package/dist-lib/cloud.cjs +1 -1
  32. package/dist-lib/cloud.mjs +1 -1
  33. package/dist-lib/config.cjs +1 -1
  34. package/dist-lib/config.mjs +1 -1
  35. package/dist-lib/detox/index.cjs +6 -4
  36. package/dist-lib/detox/jest-environment.cjs +14 -0
  37. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  38. package/dist-lib/expo-swift-bundle.cjs +3785 -1737
  39. package/dist-lib/expo-swift-metadata.cjs +1 -1
  40. package/dist-lib/expo-swift-metadata.mjs +1 -1
  41. package/dist-lib/home-paths.cjs +1 -1
  42. package/dist-lib/host/bridge-host.cjs +4253 -2205
  43. package/dist-lib/host/fetch-proxy-handler.cjs +20 -7
  44. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  45. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  46. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  47. package/dist-lib/host/websocket-proxy.cjs +1 -1
  48. package/dist-lib/index.cjs +2065 -796
  49. package/dist-lib/jump-to-source-babel.cjs +1 -1
  50. package/dist-lib/jump-to-source-native.cjs +1 -1
  51. package/dist-lib/kotlin-host.cjs +1 -1
  52. package/dist-lib/menu.cjs +1 -1
  53. package/dist-lib/menu.mjs +1 -1
  54. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  55. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  56. package/dist-lib/metro-production-bundle.cjs +1 -1
  57. package/dist-lib/metro-production-bundle.mjs +1 -1
  58. package/dist-lib/metro.cjs +6325 -4287
  59. package/dist-lib/native-app-identity-project.cjs +192 -55
  60. package/dist-lib/native-app-identity-project.mjs +235 -86
  61. package/dist-lib/native-app-identity.cjs +1 -1
  62. package/dist-lib/native-app-identity.mjs +1 -1
  63. package/dist-lib/native-firebase-metadata.cjs +1 -1
  64. package/dist-lib/native-firebase-metadata.mjs +1 -1
  65. package/dist-lib/plist.cjs +1 -1
  66. package/dist-lib/plist.mjs +1 -1
  67. package/dist-lib/profiles.cjs +1 -1
  68. package/dist-lib/public-brand.cjs +1 -1
  69. package/dist-lib/public-origins-lib-esm.json +27 -23
  70. package/dist-lib/public-origins-lib-static.json +1 -1
  71. package/dist-lib/public-origins-lib.json +156 -87
  72. package/dist-lib/react-native-host-modules.cjs +1 -1
  73. package/dist-lib/react-native-host-modules.mjs +1 -1
  74. package/dist-lib/reap-browser.cjs +2 -2
  75. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  76. package/dist-lib/sdk.cjs +3 -2
  77. package/dist-lib/sdk.mjs +3 -2
  78. package/dist-lib/skills.cjs +5036 -2833
  79. package/dist-lib/swift-compile.cjs +2937 -437
  80. package/dist-lib/swift-compile.mjs +2932 -435
  81. package/dist-lib/swift-package.cjs +137 -49
  82. package/dist-lib/swift-package.mjs +132 -49
  83. package/dist-lib/swift-submit.cjs +1 -1
  84. package/dist-lib/swift-submit.mjs +1 -1
  85. package/dist-lib/swift-toolchain.cjs +26 -11
  86. package/dist-lib/swift.cjs +1 -1
  87. package/dist-lib/vite-swift.cjs +6005 -1725
  88. package/dist-lib/vite.cjs +1911 -776
  89. package/dist-lib/worklet-executable.cjs +7 -4
  90. package/dist-lib/worklet-executable.mjs +7 -4
  91. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
  92. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +24 -2
  93. package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
  94. package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
  95. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +8 -0
  96. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  97. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
  98. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  99. package/package.json +1 -1
  100. package/runtime-companion.json +1 -1
  101. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +60 -2
  102. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
  103. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
  104. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
  105. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
  106. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
  107. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
  108. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
  109. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
  110. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
  111. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
  112. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
  113. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
  114. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
  115. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
  116. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
  118. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
  119. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
  120. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
  121. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
  122. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
  123. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
  124. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
  125. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
  126. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
  127. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
  128. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
  129. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
  130. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
  131. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
  132. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +117 -2
  133. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
  134. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
  135. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
  136. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
  137. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
  138. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
  139. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
  140. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
  141. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
  142. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
  143. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
  144. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
  145. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -0
  146. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
  147. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
  148. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
  149. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
  150. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
  151. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
  152. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
  153. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
  154. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
  155. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
  156. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
  157. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
  158. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
  159. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
  160. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
  161. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
  162. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
  163. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
  164. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
  165. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
  166. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
  167. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
  168. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
  169. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
  170. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
  171. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
  172. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
  173. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
  174. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
  175. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
  176. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
  177. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
  178. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
  179. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
  180. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
  181. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
  182. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
  183. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
  184. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
  185. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
  186. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
  187. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
  188. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
  189. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
  190. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
  191. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
  192. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
  193. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
  194. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
  195. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
  196. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
  197. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
  198. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
  199. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
  200. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
  201. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
  202. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
  203. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
  204. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
  205. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
  206. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
  207. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
  208. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
  209. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
  210. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
  211. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
  212. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
  213. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
  214. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
  215. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
  216. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
  217. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
  218. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
  219. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
  220. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
  221. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
  222. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
  223. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
  224. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
  225. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
  226. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
  227. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
  228. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
  229. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
  230. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
  231. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
  232. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
  233. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
  234. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
  235. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
  236. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
  237. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
  238. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
  239. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
  240. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
  241. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
  242. package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
  243. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +10 -0
  244. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
  245. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
  246. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
  247. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
  248. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
  249. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
  250. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
  251. package/sdk/ios/usr/include/arm/param.h +151 -0
  252. package/sdk/ios/usr/include/complex.h +167 -0
  253. package/sdk/ios/usr/include/dispatch/dispatch.h +8 -0
  254. package/sdk/ios/usr/include/dlfcn.h +1 -2
  255. package/sdk/ios/usr/include/mach/mach_types.h +1 -0
  256. package/sdk/ios/usr/include/machine/param.h +42 -0
  257. package/sdk/ios/usr/include/math.h +835 -2
  258. package/sdk/ios/usr/include/net/if.h +1 -2
  259. package/sdk/ios/usr/include/peach/pthread.h +4 -4
  260. package/sdk/ios/usr/include/pthread/qos.h +304 -0
  261. package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
  262. package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
  263. package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
  264. package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
  265. package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
  266. package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
  267. package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
  268. package/sdk/ios/usr/include/sys/cdefs.h +3 -1
  269. package/sdk/ios/usr/include/sys/param.h +235 -0
  270. package/sdk/ios/usr/include/sys/proc.h +1 -0
  271. package/sdk/ios/usr/include/sys/qos.h +151 -12
  272. package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
  273. package/sdk/ios/wasm/include/fcntl.h +11 -0
  274. package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
  275. package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
  276. package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
  277. package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
  278. package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
  279. package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
  280. package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
  281. package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
  282. package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
  283. package/sdk/ios/wasm/include/machine/_types.h +153 -0
  284. package/sdk/ios/wasm/include/machine/endian.h +2 -0
  285. package/sdk/ios/wasm/include/machine/limits.h +2 -0
  286. package/sdk/ios/wasm/include/machine/types.h +30 -0
  287. package/sdk/ios/wasm/include/poll.h +8 -0
  288. package/sdk/ios/wasm/include/pthread.h +50 -0
  289. package/sdk/ios/wasm/include/signal.h +72 -0
  290. package/sdk/ios/wasm/include/stdlib.h +3 -0
  291. package/sdk/ios/wasm/include/string.h +10 -0
  292. package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
  293. package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
  294. package/sdk/ios/wasm/include/sys/mman.h +122 -0
  295. package/sdk/ios/wasm/include/sys/select.h +37 -0
  296. package/sdk/ios/wasm/include/sys/signal.h +259 -0
  297. package/sdk/ios/wasm/include/sys/socket.h +8 -0
  298. package/sdk/ios/wasm/include/sys/types.h +14 -0
  299. package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
  300. package/sdk/ios/wasm/include/sys/uio.h +11 -0
  301. package/sdk/ios/wasm/include/sys/wait.h +89 -0
  302. package/sdk/ios/wasm/include/time.h +8 -0
  303. package/sdk/ios/wasm/include/unistd.h +17 -0
  304. package/src/bridge-contract.ts +2 -0
  305. package/src/chromium-admission.ts +10 -5
  306. package/src/device-catalog.ts +4 -4
  307. package/src/generated/swift-c-predefines.json +1988 -0
  308. package/src/host/fetch-proxy-handler.ts +20 -0
  309. package/src/metro-plugin.ts +5 -2
  310. package/src/nitro-adapter.lock.json +6 -6
  311. package/src/nitro-bundle.ts +1 -0
  312. package/src/nitro-compile.ts +67 -2
  313. package/src/nitroContract.ts +18 -2
  314. package/src/numbered-lock.ts +72 -0
  315. package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
  316. package/src/react-native-coverage/capability-source-references.ts +50 -13
  317. package/src/react-native-coverage/native-source-credit.ts +126 -0
  318. package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
  319. package/src/react-native-coverage/native-surface.ts +49 -0
  320. package/src/react-native-coverage/verified-reach.ts +22 -2
  321. package/src/runtime-assets.ts +17 -0
  322. package/src/swift-compile.ts +530 -97
  323. package/src/swift-coverage/indexing.ts +17 -1
  324. package/src/swift-coverage/package.ts +3 -1
  325. package/src/swift-coverage/sdk.ts +71 -0
  326. package/src/swift-coverage/source.ts +74 -2
  327. package/src/swift-coverage/types.ts +6 -0
  328. package/src/swift-coverage/xcode-assets.ts +62 -2
  329. package/src/swift-coverage/xcode-packages.ts +11 -6
  330. package/src/swift-distribution.lock.json +12 -12
  331. package/src/swift-host.ts +457 -62
  332. package/src/swift-objc-compile.ts +26 -26
  333. package/src/swift-objc-metadata.ts +2 -8
  334. package/src/swift-objc-platform.ts +53 -0
  335. package/src/swift-objc-standin.ts +66 -12
  336. package/src/swift-package-manifest.ts +196 -28
  337. package/src/swift-package.ts +186 -60
  338. package/src/swift-packages.ts +298 -88
  339. package/src/swift-source-file.ts +10 -15
  340. package/src/swift-source-pods.ts +288 -0
  341. package/src/swift-standins.ts +87 -13
  342. package/src/swift-submit.ts +5 -0
  343. package/src/swift-toolchain.ts +32 -10
  344. package/src/swiftContract.ts +160 -75
  345. package/src/target-matcher.ts +15 -2
  346. package/src/vite-plugin-one.ts +5 -4
  347. package/src/worker-system-chunks.ts +7 -1
  348. package/src/worklet-executable.ts +7 -3
  349. package/src/xcode-json-project.ts +14 -2
  350. package/src/xcode-project.ts +193 -69
@@ -0,0 +1,549 @@
1
+ //
2
+ // MTLLibrary.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/MTLResource.h>
11
+ #import <Metal/MTLArgument.h>
12
+ #import <Metal/MTLTypes.h>
13
+
14
+
15
+ #import <Metal/MTLFunctionDescriptor.h>
16
+
17
+ NS_ASSUME_NONNULL_BEGIN
18
+ @protocol MTLDevice;
19
+ @protocol MTLFunction;
20
+ @protocol MTLLibrary;
21
+ @class MTLCompileOptions;
22
+ @class MTLFunctionConstantValues;
23
+ @class MTLIntersectionFunctionDescriptor;
24
+ @protocol MTLDynamicLibrary;
25
+
26
+ @class MTLRenderPipelineReflection;
27
+ @class MTLComputePipelineReflection;
28
+
29
+ @protocol MTLLibrary;
30
+ @protocol MTLRenderPipelineState;
31
+ @protocol MTLComputePipelineState;
32
+
33
+ /* Convenience typedefs that make it easy to declare storage for certain return types. */
34
+ typedef __autoreleasing MTLRenderPipelineReflection * __nullable MTLAutoreleasedRenderPipelineReflection;
35
+ typedef __autoreleasing MTLComputePipelineReflection * __nullable MTLAutoreleasedComputePipelineReflection;
36
+
37
+ typedef void (^MTLNewLibraryCompletionHandler)(id <MTLLibrary> __nullable library, NSError * __nullable error);
38
+
39
+ typedef void (^MTLNewRenderPipelineStateCompletionHandler)(id <MTLRenderPipelineState> __nullable renderPipelineState, NSError * __nullable error);
40
+
41
+ typedef void (^MTLNewRenderPipelineStateWithReflectionCompletionHandler)(id <MTLRenderPipelineState> __nullable renderPipelineState, MTLRenderPipelineReflection * _Nullable_result reflection, NSError * __nullable error);
42
+
43
+ typedef void (^MTLNewComputePipelineStateCompletionHandler)(id <MTLComputePipelineState> __nullable computePipelineState, NSError * __nullable error);
44
+
45
+ typedef void (^MTLNewComputePipelineStateWithReflectionCompletionHandler)(id <MTLComputePipelineState> __nullable computePipelineState, MTLComputePipelineReflection * _Nullable_result reflection, NSError * __nullable error);
46
+
47
+ typedef void (^MTLNewDynamicLibraryCompletionHandler)(id<MTLDynamicLibrary> __nullable library, NSError* __nullable error);
48
+
49
+
50
+ @protocol MTLArgumentEncoder;
51
+
52
+ typedef __autoreleasing MTLArgument *__nullable MTLAutoreleasedArgument API_DEPRECATED("Use MTLBinding and cast to specific Binding (MTLTextureBinding, MTLBufferBinding, .etc) instead", macos(10.11, 13.0), ios(8.0, 16.0));
53
+
54
+ typedef NS_ENUM(NSUInteger, MTLPatchType) {
55
+ MTLPatchTypeNone = 0,
56
+ MTLPatchTypeTriangle = 1,
57
+ MTLPatchTypeQuad = 2,
58
+ } API_AVAILABLE(macos(10.12), ios(10.0));
59
+
60
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
61
+ @interface MTLVertexAttribute : NSObject
62
+
63
+ @property (readonly) NSString *name;
64
+ @property (readonly) NSUInteger attributeIndex;
65
+ @property (readonly) MTLDataType attributeType API_AVAILABLE(macos(10.11), ios(8.3));
66
+ @property (readonly, getter=isActive) BOOL active;
67
+ @property (readonly, getter=isPatchData) BOOL patchData API_AVAILABLE(macos(10.12), ios(10.0));
68
+ @property (readonly, getter=isPatchControlPointData) BOOL patchControlPointData API_AVAILABLE(macos(10.12), ios(10.0));
69
+
70
+ @end
71
+
72
+ MTL_EXPORT API_AVAILABLE(macos(10.12), ios(10.0))
73
+ @interface MTLAttribute : NSObject
74
+
75
+ @property (readonly) NSString *name;
76
+ @property (readonly) NSUInteger attributeIndex;
77
+ @property (readonly) MTLDataType attributeType;
78
+ @property (readonly, getter=isActive) BOOL active;
79
+ @property (readonly, getter=isPatchData) BOOL patchData API_AVAILABLE(macos(10.12), ios(10.0));
80
+ @property (readonly, getter=isPatchControlPointData) BOOL patchControlPointData API_AVAILABLE(macos(10.12), ios(10.0));
81
+
82
+ @end
83
+
84
+ /*!
85
+ @enum MTLFunctionType
86
+ @abstract An identifier for a top-level Metal function.
87
+ @discussion Each location in the API where a program is used requires a function written for that specific usage.
88
+
89
+ @constant MTLFunctionTypeVertex
90
+ A vertex shader, usable for a MTLRenderPipelineState.
91
+
92
+ @constant MTLFunctionTypeFragment
93
+ A fragment shader, usable for a MTLRenderPipelineState.
94
+
95
+ @constant MTLFunctionTypeKernel
96
+ A compute kernel, usable to create a MTLComputePipelineState.
97
+ */
98
+ typedef NS_ENUM(NSUInteger, MTLFunctionType) {
99
+ MTLFunctionTypeVertex = 1,
100
+ MTLFunctionTypeFragment = 2,
101
+ MTLFunctionTypeKernel = 3,
102
+ MTLFunctionTypeVisible API_AVAILABLE(macos(11.0), ios(14.0)) = 5,
103
+ MTLFunctionTypeIntersection API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 6,
104
+ MTLFunctionTypeMesh API_AVAILABLE(macos(13.0), ios(16.0)) = 7,
105
+ MTLFunctionTypeObject API_AVAILABLE(macos(13.0), ios(16.0)) = 8,
106
+ } API_AVAILABLE(macos(10.11), ios(8.0));
107
+
108
+
109
+ /*!
110
+ @interface MTLFunctionConstant
111
+ @abstract describe an uberShader constant used by the function
112
+ */
113
+ MTL_EXPORT API_AVAILABLE(macos(10.12), ios(10.0))
114
+ @interface MTLFunctionConstant : NSObject
115
+
116
+ @property (readonly) NSString *name;
117
+ @property (readonly) MTLDataType type;
118
+ @property (readonly) NSUInteger index;
119
+ @property (readonly) BOOL required;
120
+
121
+ @end
122
+
123
+ /*!
124
+ @protocol MTLFunction
125
+ @abstract A handle to intermediate code used as inputs for either a MTLComputePipelineState or a MTLRenderPipelineState.
126
+ @discussion MTLFunction is a single vertex shader, fragment shader, or compute function. A Function can only be used with the device that it was created against.
127
+ */
128
+ API_AVAILABLE(macos(10.11), ios(8.0)) NS_SWIFT_SENDABLE
129
+ @protocol MTLFunction <NSObject>
130
+
131
+ /*!
132
+ @property label
133
+ @abstract A string to help identify this object.
134
+ */
135
+ @property (nullable, copy, atomic) NSString *label API_AVAILABLE(macos(10.12), ios(10.0));
136
+
137
+ /*!
138
+ @property device
139
+ @abstract The device this resource was created against. This resource can only be used with this device.
140
+ */
141
+ @property (readonly) id <MTLDevice> device;
142
+
143
+ /*!
144
+ @property functionType
145
+ @abstract The overall kind of entry point: compute, vertex, or fragment.
146
+ */
147
+ @property (readonly) MTLFunctionType functionType;
148
+
149
+ /*!
150
+ @property patchType
151
+ @abstract Returns the patch type. MTLPatchTypeNone if it is not a post tessellation vertex shader.
152
+ */
153
+ @property (readonly) MTLPatchType patchType API_AVAILABLE(macos(10.12), ios(10.0));
154
+
155
+ /*!
156
+ @property patchControlPointCount
157
+ @abstract Returns the number of patch control points if it was specified in the shader. Returns -1 if it
158
+ was not specified.
159
+ */
160
+ @property (readonly) NSInteger patchControlPointCount API_AVAILABLE(macos(10.12), ios(10.0));
161
+
162
+ @property (nullable, readonly) NSArray <MTLVertexAttribute *> *vertexAttributes;
163
+
164
+ /*!
165
+ @property stageInputAttributes
166
+ @abstract Returns an array describing the attributes
167
+ */
168
+ @property (nullable, readonly) NSArray <MTLAttribute *> *stageInputAttributes API_AVAILABLE(macos(10.12), ios(10.0));
169
+
170
+ /*!
171
+ @property name
172
+ @abstract The name of the function in the shading language.
173
+ */
174
+ @property (readonly) NSString *name;
175
+
176
+ /*!
177
+ @property functionConstantsDictionary
178
+ @abstract A dictionary containing information about all function contents, keyed by the constant names.
179
+ */
180
+ @property (readonly) NSDictionary<NSString *, MTLFunctionConstant *> *functionConstantsDictionary API_AVAILABLE(macos(10.12), ios(10.0));
181
+
182
+
183
+ /*!
184
+ * @method newArgumentEncoderWithBufferIndex:
185
+ * @abstract Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
186
+ */
187
+ - (id <MTLArgumentEncoder>)newArgumentEncoderWithBufferIndex:(NSUInteger)bufferIndex API_AVAILABLE(macos(10.13), ios(11.0));
188
+
189
+ /*!
190
+ * @method newArgumentEncoderWithBufferIndex:
191
+ * @abstract Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
192
+ */
193
+ - (id <MTLArgumentEncoder>)newArgumentEncoderWithBufferIndex:(NSUInteger)bufferIndex
194
+ reflection:(MTLAutoreleasedArgument * __nullable)reflection API_DEPRECATED("Use MTLDevice's newArgumentEncoderWithBufferBinding: instead", macos(10.13, 13.0), ios(11.0, 16.0));
195
+
196
+
197
+
198
+ /*!
199
+ @property options
200
+ @abstract The options this function was created with.
201
+ */
202
+ @property (readonly) MTLFunctionOptions options API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
203
+
204
+
205
+ @end
206
+
207
+ typedef NS_ENUM(NSUInteger, MTLLanguageVersion) {
208
+ MTLLanguageVersion1_0 API_DEPRECATED("Use a newer language standard", ios(9.0, 16.0)) API_UNAVAILABLE(macos, macCatalyst) = (1 << 16),
209
+ MTLLanguageVersion1_1 API_AVAILABLE(macos(10.11), ios(9.0)) = (1 << 16) + 1,
210
+ MTLLanguageVersion1_2 API_AVAILABLE(macos(10.12), ios(10.0)) = (1 << 16) + 2,
211
+ MTLLanguageVersion2_0 API_AVAILABLE(macos(10.13), ios(11.0)) = (2 << 16),
212
+ MTLLanguageVersion2_1 API_AVAILABLE(macos(10.14), ios(12.0)) = (2 << 16) + 1,
213
+ MTLLanguageVersion2_2 API_AVAILABLE(macos(10.15), ios(13.0)) = (2 << 16) + 2,
214
+ MTLLanguageVersion2_3 API_AVAILABLE(macos(11.0), ios(14.0)) = (2 << 16) + 3,
215
+ MTLLanguageVersion2_4 API_AVAILABLE(macos(12.0), ios(15.0)) = (2 << 16) + 4,
216
+ MTLLanguageVersion3_0 API_AVAILABLE(macos(13.0), ios(16.0)) =
217
+ (3 << 16) + 0,
218
+ MTLLanguageVersion3_1 API_AVAILABLE(macos(14.0), ios(17.0)) =
219
+ (3 << 16) + 1,
220
+ MTLLanguageVersion3_2 API_AVAILABLE(macos(15.0), ios(18.0)) =
221
+ (3 << 16) + 2,
222
+ MTLLanguageVersion4_0 API_AVAILABLE(macos(26.0), ios(26.0)) =
223
+ (4 << 16) + 0,
224
+ MTLLanguageVersion4_1 API_AVAILABLE(macos(27.0), ios(27.0)) =
225
+ (4 << 16) + 1,
226
+ } API_AVAILABLE(macos(10.11), ios(9.0));
227
+
228
+ typedef NS_ENUM(NSInteger, MTLLibraryType) {
229
+ MTLLibraryTypeExecutable = 0,
230
+ MTLLibraryTypeDynamic = 1,
231
+ } API_AVAILABLE(macos(11.0), ios(14.0));
232
+
233
+ /*!
234
+ @enum MTLLibraryOptimizationLevel
235
+ @abstract Optimization level for the Metal compiler.
236
+
237
+ @constant MTLLibraryOptimizationLevelDefault
238
+ Optimize for program performance.
239
+
240
+ @constant MTLLibraryOptimizationLevelSize
241
+ Like default, with extra optimizations to reduce code size.
242
+ */
243
+ typedef NS_ENUM(NSInteger, MTLLibraryOptimizationLevel)
244
+ {
245
+ MTLLibraryOptimizationLevelDefault = 0,
246
+ MTLLibraryOptimizationLevelSize = 1,
247
+ } API_AVAILABLE(macos(13.0), ios(16.0));
248
+
249
+
250
+ typedef NS_ENUM(NSInteger, MTLCompileSymbolVisibility)
251
+ {
252
+ MTLCompileSymbolVisibilityDefault = 0,
253
+ MTLCompileSymbolVisibilityHidden = 1,
254
+ } API_AVAILABLE(macos(13.3), ios(16.4));
255
+
256
+ /*!
257
+ @enum MTLMathMode
258
+ @abstract An enum to indicate if the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard
259
+
260
+ @constant MTLMathModeSafe
261
+ Disables unsafe floating-point optimizations
262
+
263
+ @constant MTLMathModeRelaxed
264
+ Allows aggressive, unsafe floating-point optimizations but preserves infs and nans
265
+
266
+ @constant MTLMathModeFast
267
+ Allows aggressive, unsafe floating-point optimizations
268
+ */
269
+ typedef NS_ENUM(NSInteger, MTLMathMode)
270
+ {
271
+ MTLMathModeSafe = 0,
272
+ MTLMathModeRelaxed = 1,
273
+ MTLMathModeFast = 2,
274
+ };
275
+
276
+ /*!
277
+ @enum MTLMathFloatingPointFunctions
278
+ @abstract An enum to indicate the default math functions for single precision floating-point
279
+
280
+ @constant MTLMathFloatingPointFunctionsFast
281
+ Sets the default math functions for single precision floating-point to the corresponding functions in `metal::fast` namespace
282
+
283
+ @constant MTLMathFloatingPointFunctionsPrecise
284
+ Sets the default math functions for single precision floating-point to the corresponding functions in 'metal::precise' namespace
285
+ */
286
+ typedef NS_ENUM(NSInteger, MTLMathFloatingPointFunctions)
287
+ {
288
+ MTLMathFloatingPointFunctionsFast = 0,
289
+ MTLMathFloatingPointFunctionsPrecise = 1,
290
+ };
291
+
292
+ /*!
293
+ @enum MTLFloatingPointConversionRoundingMode
294
+ @abstract The rounding mode for narrowing floating-point conversions.
295
+
296
+ @constant MTLFloatingPointConversionRoundingModeToNearestEven
297
+ Round-to-nearest-even (default). Standard IEEE 754 rounding mode.
298
+
299
+ @constant MTLFloatingPointConversionRoundingModeTowardZero
300
+ Round-toward-zero.
301
+ */
302
+ typedef NS_ENUM(NSInteger, MTLFloatingPointConversionRoundingMode)
303
+ {
304
+ MTLFloatingPointConversionRoundingModeToNearestEven = 0,
305
+ MTLFloatingPointConversionRoundingModeTowardZero = 1,
306
+ };
307
+
308
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
309
+ @interface MTLCompileOptions : NSObject <NSCopying>
310
+
311
+ // Pre-processor options
312
+
313
+ /*!
314
+ @property preprocessorNames
315
+ @abstract List of preprocessor macros to consider to when compiling this program. Specified as key value pairs, using a NSDictionary. The keys must be NSString objects and values can be either NSString or NSNumber objects.
316
+ @discussion The default value is nil.
317
+ */
318
+ @property (nullable, readwrite, copy, nonatomic) NSDictionary <NSString *, NSObject *> *preprocessorMacros;
319
+
320
+ // Math intrinsics options
321
+
322
+ /*!
323
+ @property fastMathEnabled
324
+ @abstract If YES, enables the compiler to perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard. It also enables the high precision variant of math functions for single precision floating-point scalar and vector types. fastMathEnabled defaults to YES.
325
+ */
326
+ @property (readwrite, nonatomic) BOOL fastMathEnabled API_DEPRECATED("Use mathMode instead", macos(10.11, 15.0), ios(8.0, 18.0));
327
+
328
+ /*!
329
+ @property mathMode
330
+ @abstract Sets the floating-point arithmetic optimizations. Default depends on the language standard version.
331
+ */
332
+ @property (readwrite, nonatomic) MTLMathMode mathMode API_AVAILABLE(macos(15.0), ios(18.0));
333
+
334
+ /*!
335
+ @property mathFloatingPointFunctions
336
+ @abstract Sets the default math functions for single precision floating-point. Default is `MTLMathFloatingPointFunctionsFast`.
337
+ */
338
+ @property (nonatomic) MTLMathFloatingPointFunctions mathFloatingPointFunctions API_AVAILABLE(macos(15.0), ios(18.0));
339
+
340
+ /*!
341
+ @property languageVersion
342
+ @abstract set the metal language version used to interpret the source.
343
+ */
344
+ @property (readwrite, nonatomic) MTLLanguageVersion languageVersion API_AVAILABLE(macos(10.11), ios(9.0));
345
+
346
+ /*!
347
+ @property type
348
+ @abstract Which type the library should be compiled as. The default value is MTLLibraryTypeExecutable.
349
+ @discussion MTLLibraryTypeExecutable is suitable to build a library of "kernel", "vertex" and "fragment" qualified functions.
350
+ MTLLibraryType is suitable when the compilation result will instead be used to instantiate a MTLDynamicLibrary.
351
+ MTLDynamicLibrary contains no qualified functions, but it's unqualified functions and variables can be used as an external dependency for compiling other libraries.
352
+ */
353
+ @property (readwrite, nonatomic) MTLLibraryType libraryType API_AVAILABLE(macos(11.0), ios(14.0));
354
+
355
+ /*!
356
+ @property installName
357
+ @abstract The install name of this dynamic library.
358
+ @discussion The install name is used when a pipeline state is created that depends, directly or indirectly, on a dynamic library.
359
+ The installName is embedded into any other MTLLibrary that links against the compilation result.
360
+ This property should be set such that the dynamic library can be found in the file system at the time a pipeline state is created.
361
+ Specify one of:
362
+ - an absolute path to a file from which the dynamic library can be loaded, or
363
+ - a path relative to \@executable_path, where \@executable_path is substituted with the directory name from which the MTLLibrary containing the MTLFunction entrypoint used to create the pipeline state is loaded, or
364
+ - a path relative to \@loader_path, where \@loader_path is substituted with the directory name from which the MTLLibrary with the reference to this installName embedded is loaded.
365
+ The first is appropriate for MTLDynamicLibrary written to the file-system using its serializeToURL:error: method on the current device.
366
+ The others are appropriate when the MTLDynamicLibrary is installed as part of a bundle or app, where the absolute path is not known.
367
+ This property is ignored when the type property is not set to MTLLibraryTypeDynamic.
368
+ This propery should not be null if the property type is set to MTLLibraryTypeDynamic: the compilation will fail in that scenario.
369
+ */
370
+ @property (readwrite, nullable, copy, nonatomic) NSString *installName API_AVAILABLE(macos(11.0), ios(14.0));
371
+
372
+ /*!
373
+ @property libraries
374
+ @abstract A set of MTLDynamicLibrary instances to link against.
375
+ The installName of the provided MTLDynamicLibrary is embedded into the compilation result.
376
+ When a function from the resulting MTLLibrary is used (either as an MTLFunction, or as an to create a pipeline state, the embedded install names are used to automatically load the MTLDynamicLibrary instances.
377
+ This property can be null if no libraries should be automatically loaded, either because the MTLLibrary has no external dependencies, or because you will use preloadedLibraries to specify the libraries to use at pipeline creation time.
378
+ */
379
+ @property (readwrite, nullable, copy, nonatomic) NSArray<id<MTLDynamicLibrary>> *libraries API_AVAILABLE(macos(11.0), ios(14.0));
380
+
381
+
382
+ /*!
383
+ @property preserveInvariance
384
+ @abstract If YES, set the compiler to compile shaders to preserve invariance. The default is false.
385
+ */
386
+ @property (readwrite, nonatomic) BOOL preserveInvariance API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(14.0));
387
+
388
+ /*!
389
+ @property optimizationLevel
390
+ @abstract Sets the compiler optimization level.
391
+ */
392
+ @property (readwrite, nonatomic) MTLLibraryOptimizationLevel optimizationLevel API_AVAILABLE(macos(13.0), ios(16.0));
393
+
394
+ /*!
395
+ @property
396
+ @abstract Adds a compiler command to force the default visibility of symbols to be hidden
397
+ */
398
+ @property (readwrite, nonatomic) MTLCompileSymbolVisibility compileSymbolVisibility API_AVAILABLE(macos(13.3), ios(16.4));
399
+
400
+ /*!
401
+ @property allowReferencingUndefinedSymbols
402
+ @abstract Adds a compiler command to allow the reference of undefined symbols
403
+ */
404
+ @property (readwrite, nonatomic) BOOL allowReferencingUndefinedSymbols API_AVAILABLE(macos(13.3), ios(16.4));
405
+
406
+ /*!
407
+ @property maxTotalThreadsPerThreadgroup
408
+ @abstract Adds a compiler command to specify the total threads per threadgroup
409
+ */
410
+ @property (readwrite, nonatomic) NSUInteger maxTotalThreadsPerThreadgroup API_AVAILABLE(macos(13.3), ios(16.4));
411
+
412
+
413
+ /*!
414
+ @property enableLogging
415
+ @abstract If YES, set the compiler to enable any logging in the shader. The default is false.
416
+ */
417
+ @property (readwrite, nonatomic) BOOL enableLogging API_AVAILABLE(macos(15.0), ios(18.0));
418
+
419
+ /*!
420
+ @property floatingPointConversionRoundingMode
421
+ @abstract Sets the rounding mode for narrowing floating-point conversions. Default is MTLFloatingPointConversionRoundingModeToNearestEven.
422
+ */
423
+ @property (readwrite, nonatomic) MTLFloatingPointConversionRoundingMode floatingPointConversionRoundingMode API_AVAILABLE(macos(27.0), ios(27.0));
424
+ @end
425
+
426
+
427
+ /*!
428
+ @constant MTLLibraryErrorDomain
429
+ @abstract NSErrors raised when creating a library.
430
+ */
431
+ API_AVAILABLE(macos(10.11), ios(8.0))
432
+ MTL_EXTERN NSErrorDomain const MTLLibraryErrorDomain;
433
+
434
+ /*!
435
+ @enum MTLLibraryError
436
+ @abstract NSErrors raised when creating a library.
437
+ */
438
+ typedef NS_ENUM(NSUInteger, MTLLibraryError) {
439
+ MTLLibraryErrorUnsupported = 1,
440
+ MTLLibraryErrorInternal = 2,
441
+ MTLLibraryErrorCompileFailure = 3,
442
+ MTLLibraryErrorCompileWarning = 4,
443
+ MTLLibraryErrorFunctionNotFound API_AVAILABLE(macos(10.12), ios(10.0)) = 5,
444
+ MTLLibraryErrorFileNotFound API_AVAILABLE(macos(10.12), ios(10.0)) = 6,
445
+ } API_AVAILABLE(macos(10.11), ios(8.0));
446
+
447
+ API_AVAILABLE(macos(10.11), ios(8.0)) NS_SWIFT_SENDABLE
448
+ @protocol MTLLibrary <NSObject>
449
+
450
+ /*!
451
+ @property label
452
+ @abstract A string to help identify this object.
453
+ */
454
+ @property (nullable, copy, atomic) NSString *label;
455
+
456
+ /*!
457
+ @property device
458
+ @abstract The device this resource was created against. This resource can only be used with this device.
459
+ */
460
+ @property (readonly) id <MTLDevice> device;
461
+
462
+ /*!
463
+ @method newFunctionWithName
464
+ @abstract Returns a pointer to a function object, return nil if the function is not found in the library.
465
+ */
466
+ - (nullable id <MTLFunction>) newFunctionWithName:(NSString *)functionName;
467
+
468
+ /*!
469
+ @method newFunctionWithName:constantValues:error:
470
+ @abstract Returns a pointer to a function object obtained by applying the constant values to the named function.
471
+ @discussion This method will call the compiler. Use newFunctionWithName:constantValues:completionHandler: to
472
+ avoid waiting on the compiler.
473
+ */
474
+ - (nullable id <MTLFunction>) newFunctionWithName:(NSString *)name constantValues:(MTLFunctionConstantValues *)constantValues
475
+ error:(__autoreleasing NSError **)error API_AVAILABLE(macos(10.12), ios(10.0));
476
+
477
+
478
+ /*!
479
+ @method newFunctionWithName:constantValues:completionHandler:
480
+ @abstract Returns a pointer to a function object obtained by applying the constant values to the named function.
481
+ @discussion This method is asynchronous since it is will call the compiler.
482
+ */
483
+ - (void) newFunctionWithName:(NSString *)name constantValues:(MTLFunctionConstantValues *)constantValues
484
+ completionHandler:(void (^)(id<MTLFunction> __nullable function, NSError* __nullable error))completionHandler API_AVAILABLE(macos(10.12), ios(10.0));
485
+
486
+
487
+
488
+
489
+ /*!
490
+ @method newFunctionWithDescriptor:completionHandler:
491
+ @abstract Create a new MTLFunction object asynchronously.
492
+ */
493
+ - (void)newFunctionWithDescriptor:(nonnull MTLFunctionDescriptor *)descriptor
494
+ completionHandler:(void (^)(id<MTLFunction> __nullable function, NSError* __nullable error))completionHandler API_AVAILABLE(macos(11.0), ios(14.0));
495
+
496
+ /*!
497
+ @method newFunctionWithDescriptor:error:
498
+ @abstract Create a new MTLFunction object synchronously.
499
+ */
500
+ - (nullable id <MTLFunction>)newFunctionWithDescriptor:(nonnull MTLFunctionDescriptor *)descriptor
501
+ error:(__autoreleasing NSError **)error API_AVAILABLE(macos(11.0), ios(14.0));
502
+
503
+
504
+
505
+ /*!
506
+ @method newIntersectionFunctionWithDescriptor:completionHandler:
507
+ @abstract Create a new MTLFunction object asynchronously.
508
+ */
509
+ - (void)newIntersectionFunctionWithDescriptor:(nonnull MTLIntersectionFunctionDescriptor *)descriptor
510
+ completionHandler:(void (^)(id<MTLFunction> __nullable function, NSError* __nullable error))completionHandler
511
+ API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
512
+
513
+ /*!
514
+ @method newIntersectionFunctionWithDescriptor:error:
515
+ @abstract Create a new MTLFunction object synchronously.
516
+ */
517
+ - (nullable id <MTLFunction>)newIntersectionFunctionWithDescriptor:(nonnull MTLIntersectionFunctionDescriptor *)descriptor
518
+ error:(__autoreleasing NSError **)error
519
+ API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
520
+
521
+
522
+
523
+ /*!
524
+ @property functionNames
525
+ @abstract The array contains NSString objects, with the name of each function in library.
526
+ */
527
+ @property (readonly) NSArray <NSString *> *functionNames;
528
+
529
+ /*!
530
+ @property type
531
+ @abstract The library type provided when this MTLLibrary was created.
532
+ Libraries with MTLLibraryTypeExecutable can be used to obtain MTLFunction from.
533
+ Libraries with MTLLibraryTypeDynamic can be used to resolve external references in other MTLLibrary from.
534
+ @see MTLCompileOptions
535
+ */
536
+ @property (readonly) MTLLibraryType type API_AVAILABLE(macos(11.0), ios(14.0));
537
+
538
+ /*!
539
+ @property installName
540
+ @abstract The installName provided when this MTLLibrary was created.
541
+ @discussion Always nil if the type of the library is not MTLLibraryTypeDynamic.
542
+ @see MTLCompileOptions
543
+ */
544
+ @property (readonly, nullable) NSString* installName API_AVAILABLE(macos(11.0), ios(14.0));
545
+
546
+
547
+ @end
548
+
549
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,57 @@
1
+ //
2
+ // MTLLinkedFunctions.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2020 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Metal/MTLDefines.h>
9
+
10
+
11
+ #import <Foundation/Foundation.h>
12
+
13
+
14
+ @protocol MTLFunction;
15
+
16
+ /*!
17
+ @class MTLLinkedFunctions
18
+ @abstract A class to set functions to be linked.
19
+ @discussion All functions set on this object must have unique names.
20
+ */
21
+ MTL_EXPORT API_AVAILABLE(macos(11.0), ios(14.0))
22
+ @interface MTLLinkedFunctions : NSObject <NSCopying>
23
+
24
+ /*!
25
+ @method linkedFunctions
26
+ @abstract Create an autoreleased MTLLinkedFunctions object.
27
+ */
28
+ + (nonnull MTLLinkedFunctions *)linkedFunctions;
29
+
30
+ /*!
31
+ * @property functions
32
+ * @abstract The array of functions to be AIR linked.
33
+ */
34
+ @property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *functions;
35
+
36
+ /*!
37
+ * @property binaryFunctions
38
+ * @abstract The array of functions compiled to binary to be linked.
39
+ */
40
+ @property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *binaryFunctions API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
41
+
42
+ /*!
43
+ * @property groups
44
+ * @abstract Groups of functions, grouped to match callsites in the shader code.
45
+ */
46
+ @property (readwrite, nonatomic, copy, nullable) NSDictionary<NSString*, NSArray<id<MTLFunction>>*> *groups;
47
+
48
+ /*!
49
+ @property privateFunctions
50
+ @abstract The array of functions to be AIR linked.
51
+ @discussion These functions are not exported by the pipeline state as MTLFunctionHandle objects.
52
+ Function pointer support is not required to link private functions.
53
+ */
54
+ @property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *privateFunctions API_AVAILABLE(macos(12.0), ios(15.0));
55
+
56
+ @end
57
+
@@ -0,0 +1,65 @@
1
+ //
2
+ // MTLLogState.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Metal/MTLDefines.h>
9
+
10
+ #import <Foundation/Foundation.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+ /*!
14
+ * @enum MTLLogLevel
15
+ *
16
+ * @abstract
17
+ * The level of the log entry.
18
+ */
19
+
20
+ typedef NS_ENUM(NSInteger, MTLLogLevel)
21
+ {
22
+ MTLLogLevelUndefined,
23
+ MTLLogLevelDebug, // A log level that captures diagnostic information.
24
+ MTLLogLevelInfo, // The log level that captures additional information.
25
+ MTLLogLevelNotice, // The log level that captures notifications.
26
+ MTLLogLevelError, // The log level that captures errors.
27
+ MTLLogLevelFault, // The log level that captures fault information.
28
+ }
29
+ API_AVAILABLE(macos(15.0), ios(18.0));
30
+
31
+ API_AVAILABLE(macos(15.0), ios(18.0)) NS_SWIFT_SENDABLE
32
+ @protocol MTLLogState <NSObject>
33
+ /*!
34
+ @method addLogHandler
35
+ @abstract Add a function block to handle log message output.
36
+ In the absence of any handlers, log messages go through the default handler.
37
+ */
38
+ - (void)addLogHandler:(void(^ NS_SWIFT_SENDABLE)(NSString* __nullable subSystem, NSString* __nullable category, MTLLogLevel logLevel, NSString* message))block;
39
+ @end
40
+
41
+ MTL_EXPORT API_AVAILABLE(macos(15.0), ios(18.0))
42
+ @interface MTLLogStateDescriptor : NSObject <NSCopying>
43
+ /*!
44
+ @abstract level indicates the minimum level of the logs that will be printed.
45
+ @discussion All the logs with level less than given level will be skipped on the GPU Side.
46
+ */
47
+ @property (assign, readwrite) MTLLogLevel level;
48
+
49
+ /*!
50
+ * @abstract bufferSize indicates the size of the buffer where GPU will store the logging content from shaders. Minimum value is 1KB
51
+ */
52
+ @property (assign, readwrite) NSInteger bufferSize;
53
+ @end
54
+
55
+ API_AVAILABLE(macos(15.0), ios(18.0))
56
+ MTL_EXTERN NSErrorDomain const MTLLogStateErrorDomain;
57
+ /*!
58
+ @enum
59
+ @abstract NSErrors raised when creating a logstate.
60
+ */
61
+ typedef NS_ENUM(NSUInteger, MTLLogStateError) {
62
+ MTLLogStateErrorInvalidSize = 1,
63
+ MTLLogStateErrorInvalid = 2
64
+ } API_AVAILABLE(macos(15.0), ios(18.0));
65
+ NS_ASSUME_NONNULL_END