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,788 @@
1
+ //
2
+ // MTLRenderPipeline.h
3
+ // Metal
4
+ //
5
+ // Copyright (c) 2014 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Metal/MTLDefines.h>
9
+ #import <Metal/MTLDevice.h>
10
+ #import <Metal/MTLRenderCommandEncoder.h>
11
+ #import <Metal/MTLRenderPass.h>
12
+ #import <Metal/MTLPixelFormat.h>
13
+ #import <Metal/MTLArgument.h>
14
+ #import <Metal/MTLFunctionConstantValues.h>
15
+ #import <Metal/MTLPipeline.h>
16
+ #import <Metal/MTLAllocation.h>
17
+
18
+
19
+ #import <Metal/MTLLinkedFunctions.h>
20
+ #import <Metal/MTLFunctionHandle.h>
21
+
22
+ NS_ASSUME_NONNULL_BEGIN
23
+ @class MTLVertexDescriptor;
24
+
25
+ typedef NS_ENUM(NSUInteger, MTLBlendFactor) {
26
+ MTLBlendFactorZero = 0,
27
+ MTLBlendFactorOne = 1,
28
+ MTLBlendFactorSourceColor = 2,
29
+ MTLBlendFactorOneMinusSourceColor = 3,
30
+ MTLBlendFactorSourceAlpha = 4,
31
+ MTLBlendFactorOneMinusSourceAlpha = 5,
32
+ MTLBlendFactorDestinationColor = 6,
33
+ MTLBlendFactorOneMinusDestinationColor = 7,
34
+ MTLBlendFactorDestinationAlpha = 8,
35
+ MTLBlendFactorOneMinusDestinationAlpha = 9,
36
+ MTLBlendFactorSourceAlphaSaturated = 10,
37
+ MTLBlendFactorBlendColor = 11,
38
+ MTLBlendFactorOneMinusBlendColor = 12,
39
+ MTLBlendFactorBlendAlpha = 13,
40
+ MTLBlendFactorOneMinusBlendAlpha = 14,
41
+ MTLBlendFactorSource1Color API_AVAILABLE(macos(10.12), ios(11.0)) = 15,
42
+ MTLBlendFactorOneMinusSource1Color API_AVAILABLE(macos(10.12), ios(11.0)) = 16,
43
+ MTLBlendFactorSource1Alpha API_AVAILABLE(macos(10.12), ios(11.0)) = 17,
44
+ MTLBlendFactorOneMinusSource1Alpha API_AVAILABLE(macos(10.12), ios(11.0)) = 18,
45
+ } API_AVAILABLE(macos(10.11), ios(8.0));
46
+
47
+ typedef NS_ENUM(NSUInteger, MTLBlendOperation) {
48
+ MTLBlendOperationAdd = 0,
49
+ MTLBlendOperationSubtract = 1,
50
+ MTLBlendOperationReverseSubtract = 2,
51
+ MTLBlendOperationMin = 3,
52
+ MTLBlendOperationMax = 4,
53
+
54
+ } API_AVAILABLE(macos(10.11), ios(8.0));
55
+
56
+ typedef NS_OPTIONS(NSUInteger, MTLColorWriteMask) {
57
+ MTLColorWriteMaskNone = 0,
58
+ MTLColorWriteMaskRed = 0x1 << 3,
59
+ MTLColorWriteMaskGreen = 0x1 << 2,
60
+ MTLColorWriteMaskBlue = 0x1 << 1,
61
+ MTLColorWriteMaskAlpha = 0x1 << 0,
62
+ MTLColorWriteMaskAll = 0xf,
63
+ } API_AVAILABLE(macos(10.11), ios(8.0));
64
+
65
+ typedef NS_ENUM(NSUInteger, MTLPrimitiveTopologyClass) {
66
+ MTLPrimitiveTopologyClassUnspecified = 0,
67
+ MTLPrimitiveTopologyClassPoint = 1,
68
+ MTLPrimitiveTopologyClassLine = 2,
69
+ MTLPrimitiveTopologyClassTriangle = 3,
70
+ } API_AVAILABLE(macos(10.11), ios(12.0));
71
+
72
+ typedef NS_ENUM(NSUInteger, MTLTessellationPartitionMode) {
73
+ MTLTessellationPartitionModePow2 = 0,
74
+ MTLTessellationPartitionModeInteger = 1,
75
+ MTLTessellationPartitionModeFractionalOdd = 2,
76
+ MTLTessellationPartitionModeFractionalEven = 3,
77
+ } API_AVAILABLE(macos(10.12), ios(10.0));
78
+
79
+ typedef NS_ENUM(NSUInteger, MTLTessellationFactorStepFunction) {
80
+ MTLTessellationFactorStepFunctionConstant = 0,
81
+ MTLTessellationFactorStepFunctionPerPatch = 1,
82
+ MTLTessellationFactorStepFunctionPerInstance = 2,
83
+ MTLTessellationFactorStepFunctionPerPatchAndPerInstance = 3,
84
+ } API_AVAILABLE(macos(10.12), ios(10.0));
85
+
86
+ typedef NS_ENUM(NSUInteger, MTLTessellationFactorFormat) {
87
+ MTLTessellationFactorFormatHalf = 0,
88
+ } API_AVAILABLE(macos(10.12), ios(10.0));
89
+
90
+ typedef NS_ENUM(NSUInteger, MTLTessellationControlPointIndexType) {
91
+ MTLTessellationControlPointIndexTypeNone = 0,
92
+ MTLTessellationControlPointIndexTypeUInt16 = 1,
93
+ MTLTessellationControlPointIndexTypeUInt32 = 2,
94
+ } API_AVAILABLE(macos(10.12), ios(10.0));
95
+
96
+ @class MTLRenderPipelineColorAttachmentDescriptorArray;
97
+
98
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
99
+ @interface MTLRenderPipelineColorAttachmentDescriptor : NSObject <NSCopying>
100
+
101
+ /*! Pixel format. Defaults to MTLPixelFormatInvalid */
102
+ @property (nonatomic) MTLPixelFormat pixelFormat;
103
+
104
+ /*! Enable blending. Defaults to NO. */
105
+ @property (nonatomic, getter = isBlendingEnabled) BOOL blendingEnabled;
106
+
107
+ /*! Defaults to MTLBlendFactorOne */
108
+ @property (nonatomic) MTLBlendFactor sourceRGBBlendFactor;
109
+
110
+ /*! Defaults to MTLBlendFactorZero */
111
+ @property (nonatomic) MTLBlendFactor destinationRGBBlendFactor;
112
+
113
+ /*! Defaults to MTLBlendOperationAdd */
114
+ @property (nonatomic) MTLBlendOperation rgbBlendOperation;
115
+
116
+ /*! Defaults to MTLBlendFactorOne */
117
+ @property (nonatomic) MTLBlendFactor sourceAlphaBlendFactor;
118
+
119
+ /*! Defaults to MTLBlendFactorZero */
120
+ @property (nonatomic) MTLBlendFactor destinationAlphaBlendFactor;
121
+
122
+ /*! Defaults to MTLBlendOperationAdd */
123
+ @property (nonatomic) MTLBlendOperation alphaBlendOperation;
124
+
125
+ /* Other Options */
126
+
127
+ /*! Defaults to MTLColorWriteMaskAll */
128
+ @property (nonatomic) MTLColorWriteMask writeMask;
129
+
130
+ @end
131
+
132
+
133
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0)) NS_SWIFT_SENDABLE
134
+ @interface MTLRenderPipelineReflection : NSObject
135
+
136
+ @property (nonnull, readonly) NSArray <id<MTLBinding>> *vertexBindings API_AVAILABLE(macos(13.0), ios(16.0));
137
+ @property (nonnull, readonly) NSArray <id<MTLBinding>> *fragmentBindings API_AVAILABLE(macos(13.0), ios(16.0));
138
+ @property (nonnull, readonly) NSArray <id<MTLBinding>> *tileBindings API_AVAILABLE(macos(13.0), ios(16.0));
139
+ @property (nonnull, readonly) NSArray <id<MTLBinding>> *objectBindings API_AVAILABLE(macos(13.0), ios(16.0));
140
+ @property (nonnull, readonly) NSArray <id<MTLBinding>> *meshBindings API_AVAILABLE(macos(13.0), ios(16.0));
141
+ @property (nullable, readonly) NSArray <MTLArgument *> *vertexArguments API_DEPRECATED_WITH_REPLACEMENT("vertexBindings", macos(10.11, 13.0), ios(8.0, 16.0));
142
+ @property (nullable, readonly) NSArray <MTLArgument *> *fragmentArguments API_DEPRECATED_WITH_REPLACEMENT("fragmentBindings", macos(10.11, 13.0), ios(8.0, 16.0));
143
+ @property (nullable, readonly) NSArray <MTLArgument *> *tileArguments API_DEPRECATED_WITH_REPLACEMENT("tileBindings", macos(11.0, 13.0), macCatalyst(14.0, 16.0), ios(11.0, 16.0), tvos(14.5, 16.0));
144
+ @end
145
+
146
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
147
+ @interface MTLRenderPipelineDescriptor : NSObject <NSCopying>
148
+
149
+ @property (nullable, copy, nonatomic) NSString *label;
150
+
151
+ @property (nullable, readwrite, nonatomic, strong) id <MTLFunction> vertexFunction;
152
+ @property (nullable, readwrite, nonatomic, strong) id <MTLFunction> fragmentFunction;
153
+
154
+ @property (nullable, copy, nonatomic) MTLVertexDescriptor *vertexDescriptor;
155
+
156
+ /* Rasterization and visibility state */
157
+ @property (readwrite, nonatomic) NSUInteger sampleCount API_DEPRECATED_WITH_REPLACEMENT("rasterSampleCount", macos(10.11, 13.0), ios(8.0, 16.0));
158
+ @property (readwrite, nonatomic) NSUInteger rasterSampleCount;
159
+ @property (readwrite, nonatomic, getter = isAlphaToCoverageEnabled) BOOL alphaToCoverageEnabled;
160
+ @property (readwrite, nonatomic, getter = isAlphaToOneEnabled) BOOL alphaToOneEnabled;
161
+ @property (readwrite, nonatomic, getter = isRasterizationEnabled) BOOL rasterizationEnabled;
162
+
163
+
164
+ @property (readwrite, nonatomic) NSUInteger maxVertexAmplificationCount API_AVAILABLE(macos(10.15.4), ios(13.0), macCatalyst(13.4), tvos(16.0));
165
+
166
+ @property (readonly) MTLRenderPipelineColorAttachmentDescriptorArray *colorAttachments;
167
+
168
+ @property (nonatomic) MTLPixelFormat depthAttachmentPixelFormat;
169
+ @property (nonatomic) MTLPixelFormat stencilAttachmentPixelFormat;
170
+
171
+ @property (readwrite, nonatomic) MTLPrimitiveTopologyClass inputPrimitiveTopology API_AVAILABLE(macos(10.11), ios(12.0), tvos(14.5));
172
+
173
+ @property (readwrite, nonatomic) MTLTessellationPartitionMode tessellationPartitionMode API_AVAILABLE(macos(10.12), ios(10.0));
174
+ @property (readwrite, nonatomic) NSUInteger maxTessellationFactor API_AVAILABLE(macos(10.12), ios(10.0));
175
+ @property (readwrite, nonatomic, getter = isTessellationFactorScaleEnabled) BOOL tessellationFactorScaleEnabled API_AVAILABLE(macos(10.12), ios(10.0));
176
+ @property (readwrite, nonatomic) MTLTessellationFactorFormat tessellationFactorFormat API_AVAILABLE(macos(10.12), ios(10.0));
177
+ @property (readwrite, nonatomic) MTLTessellationControlPointIndexType tessellationControlPointIndexType API_AVAILABLE(macos(10.12), ios(10.0));
178
+ @property (readwrite, nonatomic) MTLTessellationFactorStepFunction tessellationFactorStepFunction API_AVAILABLE(macos(10.12), ios(10.0));
179
+ @property (readwrite, nonatomic) MTLWinding tessellationOutputWindingOrder API_AVAILABLE(macos(10.12), ios(10.0));
180
+
181
+ @property (readonly) MTLPipelineBufferDescriptorArray *vertexBuffers API_AVAILABLE(macos(10.13), ios(11.0));
182
+ @property (readonly) MTLPipelineBufferDescriptorArray *fragmentBuffers API_AVAILABLE(macos(10.13), ios(11.0));
183
+
184
+ @property (readwrite, nonatomic) BOOL supportIndirectCommandBuffers API_AVAILABLE(macos(10.14), ios(12.0));
185
+
186
+ /*!
187
+ @property binaryArchives
188
+ @abstract The set of MTLBinaryArchive to search for compiled code when creating the pipeline state.
189
+ @discussion Accelerate pipeline state creation by providing archives of compiled code such that no compilation needs to happen on the fast path.
190
+ @see MTLBinaryArchive
191
+ */
192
+ @property (readwrite, nullable, nonatomic, copy) NSArray<id<MTLBinaryArchive>> *binaryArchives API_AVAILABLE(macos(11.0), ios(14.0));
193
+
194
+
195
+ /*!
196
+ @property vertexPreloadedLibraries
197
+ @abstract The set of MTLDynamicLibrary to use to resolve external symbols for the vertexFunction before considering symbols from dependent MTLDynamicLibrary.
198
+ @discussion Typical workflows use the libraries property of MTLCompileOptions to record dependent libraries at compile time without having to use vertexPreloadedLibraries.
199
+ This property can be used to override symbols from dependent libraries for experimentation or evaluating alternative implementations.
200
+ It can also be used to provide dynamic libraries that are dynamically created (for example, from source) that have no stable installName that can be used to automatically load from the file system.
201
+ @see MTLDynamicLibrary
202
+ */
203
+ @property (readwrite, nonnull, nonatomic, copy) NSArray<id<MTLDynamicLibrary>>* vertexPreloadedLibraries API_AVAILABLE(macos(12.0), ios(15.0));
204
+
205
+ /*!
206
+ @property fragmentPreloadedLibraries
207
+ @abstract The set of MTLDynamicLibrary to use to resolve external symbols for the fragmentFunction before considering symbols from dependent MTLDynamicLibrary.
208
+ @discussion Typical workflows use the libraries property of MTLCompileOptions to record dependent libraries at compile time without having to use fragmentPreloadedLibraries.
209
+ This property can be used to override symbols from dependent libraries for experimentation or evaluating alternative implementations.
210
+ It can also be used to provide dynamic libraries that are dynamically created (for example, from source) that have no stable installName that can be used to automatically load from the file system.
211
+ @see MTLDynamicLibrary
212
+ */
213
+ @property (readwrite, nonnull, nonatomic, copy) NSArray<id<MTLDynamicLibrary>>* fragmentPreloadedLibraries API_AVAILABLE(macos(12.0), ios(15.0));
214
+
215
+ /*!
216
+ @property vertexLinkedFunctions
217
+ @abstract The set of functions to be linked with the pipeline state and accessed from the vertex function.
218
+ @see MTLLinkedFunctions
219
+ */
220
+ @property (null_resettable, copy, nonatomic) MTLLinkedFunctions *vertexLinkedFunctions
221
+ API_AVAILABLE(macos(12.0), ios(15.0));
222
+
223
+ /*!
224
+ @property fragmentLinkedFunctions
225
+ @abstract The set of functions to be linked with the pipeline state and accessed from the fragment function.
226
+ @see MTLLinkedFunctions
227
+ */
228
+ @property (null_resettable, copy, nonatomic) MTLLinkedFunctions *fragmentLinkedFunctions
229
+ API_AVAILABLE(macos(12.0), ios(15.0));
230
+
231
+ /*!
232
+ @property supportAddingVertexBinaryFunctions
233
+ @abstract This flag makes this pipeline support creating a new pipeline by adding binary functions.
234
+ */
235
+ @property (readwrite, nonatomic) BOOL supportAddingVertexBinaryFunctions
236
+ API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
237
+
238
+ /*!
239
+ @property supportFragmentAddingBinaryFunctions
240
+ @abstract This flag makes this pipeline support creating a new pipeline by adding binary functions.
241
+ */
242
+ @property (readwrite, nonatomic) BOOL supportAddingFragmentBinaryFunctions
243
+ API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
244
+
245
+ /*!
246
+ @property maxVertexCallStackDepth
247
+ @abstract The maximum depth of the call stack in stack frames from the shader. Defaults to 1 additional stack frame.
248
+ */
249
+ @property (readwrite, nonatomic) NSUInteger maxVertexCallStackDepth
250
+ API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
251
+
252
+ /*!
253
+ @property maxFragmentCallStackDepth
254
+ @abstract The maximum depth of the call stack in stack frames from the shader. Defaults to 1 additional stack frame.
255
+ */
256
+ @property (readwrite, nonatomic) NSUInteger maxFragmentCallStackDepth
257
+ API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
258
+
259
+
260
+
261
+ /*!
262
+ @method reset
263
+ @abstract Restore all pipeline descriptor properties to their default values.
264
+ */
265
+ - (void)reset;
266
+
267
+ /*!
268
+ @property shaderValidation
269
+ @abstract Toggle that determines whether Metal Shader Validation should be enabled or disabled for the pipeline.
270
+ @discussion The value can be overridden using `MTL_SHADER_VALIDATION_ENABLE_PIPELINES` or `MTL_SHADER_VALIDATION_DISABLE_PIPELINES` Environment Variables.
271
+ */
272
+ @property (readwrite, nonatomic) MTLShaderValidation shaderValidation API_AVAILABLE(macos(15.0), ios(18.0));
273
+
274
+ @end
275
+
276
+ MTL_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0))
277
+ @interface MTLRenderPipelineFunctionsDescriptor : NSObject <NSCopying>
278
+
279
+ /*!
280
+ @property vertexAdditionalBinaryFunctions
281
+ @abstract The set of additional binary functions to be accessed from the vertex function in an incrementally created pipeline state.
282
+ */
283
+ @property (nullable, nonatomic, copy) NSArray<id<MTLFunction>> *vertexAdditionalBinaryFunctions;
284
+
285
+ /*!
286
+ @property fragmentAdditionalBinaryFunctions
287
+ @abstract The set of additional binary functions to be accessed from the fragment function in an incrementally created pipeline state.
288
+ */
289
+ @property (nullable, nonatomic, copy) NSArray<id<MTLFunction>> *fragmentAdditionalBinaryFunctions;
290
+
291
+ /*!
292
+ @property tileAdditionalBinaryFunctions
293
+ @abstract The set of additional binary functions to be accessed from the tile function in an incrementally created pipeline state.
294
+ */
295
+ @property (nullable, nonatomic, copy) NSArray<id<MTLFunction>> *tileAdditionalBinaryFunctions;
296
+ @end
297
+
298
+ @class MTL4RenderPipelineBinaryFunctionsDescriptor;
299
+ @class MTL4PipelineDescriptor;
300
+
301
+ /*!
302
+ @protocol MTLRenderPipelineState
303
+ @abstract MTLRenderPipelineState represents a compiled render pipeline
304
+
305
+ @discussion MTLRenderPipelineState is a compiled render pipeline and can be set on a MTLRenderCommandEncoder.
306
+ */
307
+ API_AVAILABLE(macos(10.11), ios(8.0)) NS_SWIFT_SENDABLE
308
+ @protocol MTLRenderPipelineState <MTLAllocation, NSObject>
309
+
310
+ @property (nullable, readonly) NSString *label;
311
+ @property (readonly) id <MTLDevice> device;
312
+
313
+ /// The render pipeline's reflection information, if available.
314
+ ///
315
+ /// The property is `nil` by default to help reduce your app's memory footprint,
316
+ /// but you can create reflection information when your app needs it.
317
+ ///
318
+ /// Create reflection information by building a pipeline from an
319
+ /// ``MTL4Compiler`` instance with the following steps:
320
+ ///
321
+ /// 1. Configure the ``MTL4PipelineOptions/shaderReflection`` property of an ``MTL4PipelineOptions`` instance.
322
+ /// 2. Assign that instance to the ``MTL4PipelineDescriptor/options`` property of an ``MTL4PipelineDescriptor`` instance.
323
+ /// 3. Create a compute pipeline state by passing that pipeline descriptor to one of the ``MTL4Compiler`` instance's methods.
324
+ ///
325
+ /// The property is `nil` when you create a pipeline state from an``MTLDevice`` instance,
326
+ /// such as with its ``MTLDevice/newRenderPipelineStateWithDescriptor:error:`` method.
327
+ @property (nullable, readonly) MTLRenderPipelineReflection* reflection API_AVAILABLE(macos(26.0), ios(26.0));
328
+
329
+ /// Obtains a function handle for the a specific function this pipeline links at the Metal IR level.
330
+ ///
331
+ /// - Parameters:
332
+ /// - name: A string containing the name of the function.
333
+ /// - stage: The shader stage that uses the function.
334
+ ///
335
+ /// - Returns: a function handle representing the function if present, otherwise `nil`.
336
+ - (nullable id<MTLFunctionHandle>)functionHandleWithName:(NSString*)name
337
+ stage:(MTLRenderStages)stage API_AVAILABLE(macos(26.0), ios(26.0));
338
+
339
+
340
+
341
+
342
+ /*!
343
+ @property maxTotalThreadsPerThreadgroup
344
+ @abstract The maximum total number of threads that can be in a single tile shader threadgroup.
345
+ */
346
+ @property (readonly) NSUInteger maxTotalThreadsPerThreadgroup API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5));
347
+
348
+ /*!
349
+ @property threadgroupSizeMatchesTileSize
350
+ @abstract Returns true when the pipeline state requires a tile shader threadgroup size equal to the tile size
351
+ */
352
+ @property (readonly) BOOL threadgroupSizeMatchesTileSize API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5));
353
+
354
+
355
+
356
+ /*!
357
+ @property imageblockSampleLength
358
+ @brief Returns imageblock memory length used by a single sample when rendered using this pipeline.
359
+ */
360
+ @property (readonly) NSUInteger imageblockSampleLength API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5));
361
+
362
+ /*!
363
+ @method imageblockMemoryLengthForDimensions:sampleCount:
364
+ @brief Returns imageblock memory length for given image block dimensions. Dimensions must be valid tile dimensions.
365
+ */
366
+ - (NSUInteger)imageblockMemoryLengthForDimensions:(MTLSize)imageblockDimensions API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5));
367
+
368
+
369
+ @property (readonly) BOOL supportIndirectCommandBuffers API_AVAILABLE(macos(10.14), ios(12.0));
370
+
371
+
372
+ /*!
373
+ @property maxTotalThreadsPerObjectThreadgroup
374
+ @abstract The maximum total number of threads that can be in a single object shader threadgroup.
375
+ @discussion This value is set in MTLMeshRenderPipelineDescriptor.
376
+ */
377
+ @property (readonly) NSUInteger maxTotalThreadsPerObjectThreadgroup API_AVAILABLE(macos(13.0), ios(16.0));
378
+
379
+ /*!
380
+ @property maxTotalThreadsPerMeshThreadgroup
381
+ @abstract The maximum total number of threads that can be in a single mesh shader threadgroup.
382
+ @discussion This value is set in MTLMeshRenderPipelineDescriptor.
383
+ */
384
+ @property (readonly) NSUInteger maxTotalThreadsPerMeshThreadgroup API_AVAILABLE(macos(13.0), ios(16.0));
385
+
386
+ /*!
387
+ @property objectThreadExecutionWidth
388
+ @abstract The number of threads in a SIMD group of the object shader.
389
+ @discussion This value is also available in the shader with the [[threads_per_simdgroup]] attribute.
390
+ */
391
+ @property (readonly) NSUInteger objectThreadExecutionWidth API_AVAILABLE(macos(13.0), ios(16.0));
392
+
393
+ /*!
394
+ @property meshThreadExecutionWidth
395
+ @abstract The number of threads in a SIMD group of the mesh shader.
396
+ @discussion This value is also available in the shader with the [[threads_per_simdgroup]] attribute.
397
+ */
398
+ @property (readonly) NSUInteger meshThreadExecutionWidth API_AVAILABLE(macos(13.0), ios(16.0));
399
+
400
+ /*!
401
+ @property maxTotalThreadgroupsPerMeshGrid
402
+ @abstract The maximum total number of threadgroups that can be in a single mesh shader grid.
403
+ @discussion This value is set in MTLMeshRenderPipelineDescriptor.
404
+ */
405
+ @property (readonly) NSUInteger maxTotalThreadgroupsPerMeshGrid API_AVAILABLE(macos(13.0), ios(16.0));
406
+
407
+ /*!
408
+ @property gpuResourceID
409
+ @abstract Handle of the GPU resource suitable for storing in an Argument Buffer
410
+ */
411
+ @property (readonly) MTLResourceID gpuResourceID API_AVAILABLE(macos(13.0), ios(16.0));
412
+
413
+ /*!
414
+ @method functionHandleWithFunction:stage:
415
+ @brief Gets the function handle for the specified function on the specified stage of the pipeline.
416
+ */
417
+ - (nullable id<MTLFunctionHandle>)functionHandleWithFunction:(id<MTLFunction>)function stage:(MTLRenderStages)stage API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
418
+
419
+ /*!
420
+ @method newVisibleFunctionTableWithDescriptor:stage:
421
+ @brief Allocate a visible function table for the specified stage of the pipeline with the provided descriptor.
422
+ */
423
+ - (nullable id<MTLVisibleFunctionTable>)newVisibleFunctionTableWithDescriptor:(MTLVisibleFunctionTableDescriptor * __nonnull)descriptor stage:(MTLRenderStages)stage API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
424
+
425
+ /*!
426
+ @method newIntersectionFunctionTableWithDescriptor:stage:
427
+ @brief Allocate an intersection function table for the specified stage of the pipeline with the provided descriptor.
428
+ */
429
+ - (nullable id <MTLIntersectionFunctionTable>)newIntersectionFunctionTableWithDescriptor:(MTLIntersectionFunctionTableDescriptor * _Nonnull)descriptor stage:(MTLRenderStages)stage API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
430
+
431
+ /*!
432
+ @method newRenderPipelineStateWithAdditionalBinaryFunctions:error:
433
+ @brief Allocate a new render pipeline state by adding binary functions for each stage of this pipeline state.
434
+ */
435
+ - (nullable id <MTLRenderPipelineState>)newRenderPipelineStateWithAdditionalBinaryFunctions:(nonnull MTLRenderPipelineFunctionsDescriptor *)additionalBinaryFunctions error:(__autoreleasing NSError **)error API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
436
+
437
+ /*!
438
+ @property shaderValidation
439
+ @abstract Current state of Shader Validation for the pipeline.
440
+ */
441
+ @property (readonly, nonatomic) MTLShaderValidation shaderValidation API_AVAILABLE(macos(15.0), ios(18.0));
442
+
443
+
444
+ @end
445
+
446
+ MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
447
+ @interface MTLRenderPipelineColorAttachmentDescriptorArray : NSObject
448
+
449
+ /* Individual attachment state access */
450
+ - (MTLRenderPipelineColorAttachmentDescriptor *)objectAtIndexedSubscript:(NSUInteger)attachmentIndex;
451
+
452
+ /* This always uses 'copy' semantics. It is safe to set the attachment state at any legal index to nil, which resets that attachment descriptor state to default values. */
453
+ - (void)setObject:(nullable MTLRenderPipelineColorAttachmentDescriptor *)attachment atIndexedSubscript:(NSUInteger)attachmentIndex;
454
+
455
+ @end
456
+
457
+
458
+ MTL_EXPORT API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5))
459
+ @interface MTLTileRenderPipelineColorAttachmentDescriptor : NSObject <NSCopying>
460
+
461
+ /*! Pixel format. Defaults to MTLPixelFormatInvalid */
462
+ @property (nonatomic) MTLPixelFormat pixelFormat;
463
+
464
+ @end
465
+
466
+ MTL_EXPORT API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5))
467
+ @interface MTLTileRenderPipelineColorAttachmentDescriptorArray : NSObject
468
+
469
+ /* Individual tile attachment state access */
470
+ - (MTLTileRenderPipelineColorAttachmentDescriptor*)objectAtIndexedSubscript:(NSUInteger)attachmentIndex;
471
+
472
+ /* This always uses 'copy' semantics. It is safe to set the attachment state at any legal index to nil, which resets that attachment descriptor state to default values. */
473
+ - (void)setObject:(MTLTileRenderPipelineColorAttachmentDescriptor*)attachment atIndexedSubscript:(NSUInteger)attachmentIndex;
474
+
475
+ @end
476
+
477
+ MTL_EXPORT API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5))
478
+ @interface MTLTileRenderPipelineDescriptor : NSObject <NSCopying>
479
+
480
+ /*!
481
+ @property label:
482
+ @abstract The descriptor label.
483
+ */
484
+ @property (copy, nonatomic, nullable) NSString *label;
485
+
486
+ /*!
487
+ @property tileFunction:
488
+ @abstract The kernel or fragment function that serves as the tile shader for this pipeline.
489
+ @discussion Both kernel-based and fragment-based tile pipelines dispatches will barrier against previous
490
+ draws and other dispatches. Kernel-based pipelines will wait until all prior access to the tile completes.
491
+ Fragment-based pipelines will only wait until all prior access to the fragment's location completes.
492
+ */
493
+ @property (readwrite, nonatomic, strong) id <MTLFunction> tileFunction;
494
+
495
+ /* Rasterization and visibility state */
496
+ @property (readwrite, nonatomic) NSUInteger rasterSampleCount;
497
+ @property (readonly) MTLTileRenderPipelineColorAttachmentDescriptorArray *colorAttachments;
498
+
499
+ /*!
500
+ @property threadgroupSizeMatchesTileSize:
501
+ @abstract Whether all threadgroups associated with this pipeline will cover tiles entirely.
502
+ @discussion Metal can optimize code generation for this case.
503
+ */
504
+ @property (readwrite, nonatomic) BOOL threadgroupSizeMatchesTileSize;
505
+
506
+ @property (readonly) MTLPipelineBufferDescriptorArray *tileBuffers API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0));
507
+
508
+ /*!
509
+ @property maxTotalThreadsPerThreadgroup
510
+ @abstract Optional property. Set the maxTotalThreadsPerThreadgroup. If it is not set, returns zero.
511
+ */
512
+ @property (readwrite, nonatomic) NSUInteger maxTotalThreadsPerThreadgroup API_AVAILABLE(macos(10.15), ios(12.0));
513
+
514
+ /*!
515
+ @property binaryArchives
516
+ @abstract The set of MTLBinaryArchive to search for compiled code when creating the pipeline state.
517
+ @discussion Accelerate pipeline state creation by providing archives of compiled code such that no compilation needs to happen on the fast path.
518
+ @see MTLBinaryArchive
519
+ */
520
+ @property (readwrite, nullable, nonatomic, copy) NSArray<id<MTLBinaryArchive>> *binaryArchives API_AVAILABLE(macos(11.0), ios(14.0));
521
+
522
+
523
+ /*!
524
+ @property preloadedLibraries
525
+ @abstract The set of MTLDynamicLibrary to use to resolve external symbols before considering symbols from dependent MTLDynamicLibrary.
526
+ @discussion Typical workflows use the libraries property of MTLCompileOptions to record dependent libraries at compile time without having to use preloadedLibraries.
527
+ This property can be used to override symbols from dependent libraries for experimentation or evaluating alternative implementations.
528
+ It can also be used to provide dynamic libraries that are dynamically created (for example, from source) that have no stable installName that can be used to automatically load from the file system.
529
+ @see MTLDynamicLibrary
530
+ */
531
+ @property (readwrite, nonnull, nonatomic, copy) NSArray<id<MTLDynamicLibrary>>* preloadedLibraries API_AVAILABLE(macos(12.0), ios(15.0));
532
+
533
+ /*!
534
+ @property linkedFunctions
535
+ @abstract The set of functions to be linked with the pipeline state and accessed from the tile function.
536
+ @see MTLLinkedFunctions
537
+ */
538
+ @property (null_resettable, copy, nonatomic) MTLLinkedFunctions *linkedFunctions
539
+ API_AVAILABLE(macos(12.0), ios(15.0));
540
+
541
+ /*!
542
+ @property supportAddingBinaryFunctions
543
+ @abstract This flag makes this pipeline support creating a new pipeline by adding binary functions.
544
+ */
545
+ @property (readwrite, nonatomic) BOOL supportAddingBinaryFunctions
546
+ API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
547
+
548
+ /*!
549
+ @property maxCallStackDepth
550
+ @abstract The maximum depth of the call stack in stack frames from the tile function. Defaults to 1 additional stack frame.
551
+ */
552
+ @property (readwrite, nonatomic) NSUInteger maxCallStackDepth
553
+ API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
554
+
555
+
556
+ - (void)reset;
557
+
558
+ /*!
559
+ @property shaderValidation
560
+ @abstract Toggle that determines whether Metal Shader Validation should be enabled or disabled for the pipeline.
561
+ @discussion The value can be overridden using `MTL_SHADER_VALIDATION_ENABLE_PIPELINES` or `MTL_SHADER_VALIDATION_DISABLE_PIPELINES` Environment Variables.
562
+ */
563
+ @property (readwrite, nonatomic) MTLShaderValidation shaderValidation API_AVAILABLE(macos(15.0), ios(18.0));
564
+
565
+
566
+ @end
567
+
568
+
569
+ /*!
570
+ @class MTLMeshRenderPipelineDescriptor
571
+ @discussion As an alternative to a vertex + fragment shader render pipeline, this render pipeline uses a (object +) mesh + fragment shader for rendering geometry.
572
+ */
573
+ MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
574
+ @interface MTLMeshRenderPipelineDescriptor : NSObject <NSCopying>
575
+
576
+ /*!
577
+ @property label
578
+ @discussion A name or description provided by the application that will be displayed in debugging tools.
579
+ The default value is nil.
580
+ */
581
+ @property (nullable, copy, nonatomic) NSString *label;
582
+
583
+ /*!
584
+ @property objectFunction
585
+ @discussion Optional shader function responsible for determining how many threadgroups of the mesh shader to run, can optionally provide payload data for the mesh stage.
586
+ If this is nil, no payload data is available to the mesh function, and the draw command determines how many threadgroups of the mesh stage to run.
587
+ The default value is nil.
588
+ */
589
+ @property (nullable, readwrite, nonatomic, strong) id <MTLFunction> objectFunction;
590
+
591
+ /*!
592
+ @property meshFunction
593
+ @discussion Shader function responsible for exporting a chunk of geometry per threadgroup for the rasterizer.
594
+ The default value is nil.
595
+ */
596
+ @property (nullable, readwrite, nonatomic, strong) id <MTLFunction> meshFunction;
597
+
598
+ /*!
599
+ @property fragmentFunction
600
+ @discussion Like a classical render pipeline, this fragments covered by the rasterized geometry are shaded with this function.
601
+ The default value is nil. To create a pipeline, you must either set fragmentFunction to non-nil, or set rasterizationEnabled to NO.
602
+ */
603
+ @property (nullable, readwrite, nonatomic, strong) id <MTLFunction> fragmentFunction;
604
+
605
+ /*!
606
+ @property maxTotalThreadsPerObjectThreadgroup
607
+ @discussion The maximum size of the product of threadsPerObjectThreadgroup that can be used for draws with this pipeline.
608
+ This information can be used by the optimizer to generate more efficient code, specifically when the specified value does not exceed the thread execution width of the underlying GPU.
609
+ The default value is 0, which means that the value specified with the [[max_total_threads_per_threadgroup(N)]] specified on objectFunction will be used.
610
+ When both the [[max_total_threads_per_threadgroup(N)]] attribute and a non-zero value are specified, both values must match.
611
+ Any value specified cannot exceed the device limit as documented in the "Metal Feature Set Tables" for "Maximum threads per threadgroup".
612
+ */
613
+ @property (readwrite, nonatomic) NSUInteger maxTotalThreadsPerObjectThreadgroup;
614
+
615
+ /*!
616
+ @property maxTotalThreadsPerMeshThreadgroup
617
+ @discussion The maximum size of the product of threadsPerMeshThreadgroup that can be used for draws with this pipeline.
618
+ This information can be used by the optimizer to generate more efficient code, specifically when the specified value does not exceed the thread execution width of the underlying GPU.
619
+ The default value is 0, which means that the value specified with the [[max_total_threads_per_threadgroup(N)]] specified on meshFunction will be used.
620
+ When both the [[max_total_threads_per_threadgroup(N)]] attribute and a non-zero value are specified, both values must match.
621
+ Any value specified cannot exceed the device limit as documented in the "Metal Feature Set Tables" for "Maximum threads per threadgroup".
622
+ */
623
+ @property (readwrite, nonatomic) NSUInteger maxTotalThreadsPerMeshThreadgroup;
624
+
625
+ /*!
626
+ @property objectThreadgroupSizeIsMultipleOfThreadExecutionWidth
627
+ @discussion Set this value to YES when you will only use draws with the product of threadsPerObjectThreadgroup set to a multiple of the objectThreadExecutionWidth of the returned pipeline state.
628
+ This information can be used by the optimizer to generate more efficient code.
629
+ The default value is NO.
630
+ */
631
+ @property (readwrite, nonatomic) BOOL objectThreadgroupSizeIsMultipleOfThreadExecutionWidth;
632
+
633
+ /*!
634
+ @property meshThreadgroupSizeIsMultipleOfThreadExecutionWidth
635
+ @discussion Set this value to YES when you will only use draws with the product of threadsPerMeshThreadgroup set to a multiple of the meshThreadExecutionWidth of the returned pipeline state.
636
+ This information can be used by the optimizer to generate more efficient code.
637
+ The default value is NO.
638
+ */
639
+ @property (readwrite, nonatomic) BOOL meshThreadgroupSizeIsMultipleOfThreadExecutionWidth;
640
+
641
+ /*!
642
+ @property payloadMemoryLength
643
+ @discussion The size, in bytes, of the buffer indicated by [[payload]] in the object and mesh shader.
644
+ If this value is 0, the size of the dereferenced type declared in the object shader for the buffer is used (space for a single element is assumed for pointers).
645
+ The default value is 0.
646
+ */
647
+ @property (readwrite, nonatomic) NSUInteger payloadMemoryLength;
648
+
649
+ /*!
650
+ @property maxTotalThreadgroupsPerMeshGrid
651
+ @discussion The maximum value of the product of vector elements that the object shader may pass to the mesh_grid_properties::set_threadgroups_per_grid built-in function.
652
+ The default value is 0, which means that the value specified with the [[max_total_threadgroups_per_mesh_grid(N)]] specified on objectFunction will be used.
653
+ When both the [[max_total_threadgroups_per_mesh_grid(N)]] attribute and a non-zero value are specified, both values must match.
654
+ Any value specified cannot exceed the device limit as documented in the "Metal Feature Set Tables" for "Maximum threadgroups per mesh grid".
655
+ Specifying this value is optional; it may be used to improve scheduling of the workload. If neither this value nor the shader attribute are used, the device's maximum supported value is used instead.
656
+ */
657
+ @property (readwrite, nonatomic) NSUInteger maxTotalThreadgroupsPerMeshGrid;
658
+
659
+ /*!
660
+ @property objectBuffers
661
+ @abstract Provide mutability information on the buffers used by objectFunction.
662
+ @discussion Specifying these values is optional; it may be used to optimize the shader code.
663
+ */
664
+ @property (readonly) MTLPipelineBufferDescriptorArray *objectBuffers;
665
+
666
+ /*!
667
+ @property meshBuffers
668
+ @abstract Provide mutability information on the buffers used by meshFunction.
669
+ @discussion Specifying these values is optional; it may be used to optimize the shader code.
670
+ */
671
+ @property (readonly) MTLPipelineBufferDescriptorArray *meshBuffers;
672
+
673
+ /*!
674
+ @property fragmentBuffers
675
+ @abstract Provide mutability information on the buffers used by fragmentFunction.
676
+ @discussion Specifying these values is optional; it may be used to optimize the shader code.
677
+ */
678
+ @property (readonly) MTLPipelineBufferDescriptorArray *fragmentBuffers;
679
+
680
+ /*!
681
+ @property rasterSampleCount
682
+ @discussion The number of samples per fragment of the render pass in which this pipeline will be used.
683
+ */
684
+ @property (readwrite, nonatomic) NSUInteger rasterSampleCount;
685
+
686
+ /*!
687
+ @property alphaToCoverageEnabled
688
+ @abstract Whether the alpha value exported by the fragment shader for the first color attachment is converted to a sample mask, which is subsequently AND-ed with the fragments' sample mask
689
+ @discussion The default value is NO.
690
+ */
691
+ @property (readwrite, nonatomic, getter = isAlphaToCoverageEnabled) BOOL alphaToCoverageEnabled;
692
+
693
+ /*!
694
+ @property alphaToOneEnabled
695
+ @abstract Whether the alpha value exported by the fragment shader for all color attachments is modified to 1 (after evaluating alphaToCoverage).
696
+ @discussion The default value is NO.
697
+ */
698
+ @property (readwrite, nonatomic, getter = isAlphaToOneEnabled) BOOL alphaToOneEnabled;
699
+
700
+ /*!
701
+ @property rasterizationEnabled
702
+ @abstract Whether rasterization is disabled, all primitives are dropped prior to rasterization.
703
+ @discussion The default value is YES.
704
+ */
705
+ @property (readwrite, nonatomic, getter = isRasterizationEnabled) BOOL rasterizationEnabled;
706
+
707
+ /*!
708
+ @property maxVertexAmplificationCount
709
+ @abstract The maximum value that can be passed to setVertexAmplificationCount when using this pipeline.
710
+ @discussion The default value is 1. The value must be supported by the device, which can be checked with supportsVertexAmplificationCount.
711
+ */
712
+ @property (readwrite, nonatomic) NSUInteger maxVertexAmplificationCount;
713
+
714
+ /*!
715
+ @property colorAttachments
716
+ @abstract Describes the color attachments of the render pass in which this pipeline will be used.
717
+ */
718
+ @property (readonly) MTLRenderPipelineColorAttachmentDescriptorArray *colorAttachments;
719
+
720
+ /*!
721
+ @property depthAttachmentPixelFormat
722
+ @abstract The pixel format of the depth attachment of the render pass in which this pipeline will be used.
723
+ @discussion The default value is MTLPixelFormatInvalid; indicating no depth attachment will be used.
724
+ */
725
+ @property (nonatomic) MTLPixelFormat depthAttachmentPixelFormat;
726
+
727
+ /*!
728
+ @property stencilAttachmentPixelFormat
729
+ @abstract The pixel format of the stencil attachment of the render pass in which this pipeline will be used.
730
+ @discussion The default value is MTLPixelFormatInvalid; indicating no stencil attachment will be used.
731
+ */
732
+ @property (nonatomic) MTLPixelFormat stencilAttachmentPixelFormat;
733
+
734
+ /*!
735
+ @property supportIndirectCommandBuffers
736
+ @abstract Whether this pipeline will support being used by commands in an indirect command buffer.
737
+ @discussion The default value is NO.
738
+ */
739
+ @property (readwrite, nonatomic) BOOL supportIndirectCommandBuffers API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
740
+
741
+ /*!
742
+ @property binaryArchives
743
+ @abstract The set of MTLBinaryArchive to search for compiled code when creating the pipeline state.
744
+ @discussion Accelerate pipeline state creation by providing archives of compiled code such that no compilation needs to happen on the fast path.
745
+ @see MTLBinaryArchive
746
+ */
747
+ @property (readwrite, nullable, nonatomic, copy) NSArray<id<MTLBinaryArchive>> *binaryArchives API_AVAILABLE(macos(15.0), ios(18.0));
748
+
749
+
750
+ /*!
751
+ @property objectLinkedFunctions
752
+ @abstract The set of functions to be linked with the pipeline state and accessed from the object function.
753
+ @see MTLLinkedFunctions
754
+ */
755
+ @property (null_resettable, copy, nonatomic) MTLLinkedFunctions *objectLinkedFunctions API_AVAILABLE(macos(14.0), ios(17.0));
756
+
757
+ /*!
758
+ @property meshLinkedFunctions
759
+ @abstract The set of functions to be linked with the pipeline state and accessed from the mesh function.
760
+ @see MTLLinkedFunctions
761
+ */
762
+ @property (null_resettable, copy, nonatomic) MTLLinkedFunctions *meshLinkedFunctions API_AVAILABLE(macos(14.0), ios(17.0));
763
+
764
+ /*!
765
+ @property fragmentLinkedFunctions
766
+ @abstract The set of functions to be linked with the pipeline state and accessed from the fragment function.
767
+ @see MTLLinkedFunctions
768
+ */
769
+ @property (null_resettable, copy, nonatomic) MTLLinkedFunctions *fragmentLinkedFunctions API_AVAILABLE(macos(14.0), ios(17.0));
770
+
771
+ /*!
772
+ @method reset
773
+ @abstract Restore all mesh pipeline descriptor properties to their default values.
774
+ */
775
+ - (void)reset;
776
+
777
+ /*!
778
+ @property shaderValidation
779
+ @abstract Toggle that determines whether Metal Shader Validation should be enabled or disabled for the pipeline.
780
+ @discussion The value can be overridden using `MTL_SHADER_VALIDATION_ENABLE_PIPELINES` or `MTL_SHADER_VALIDATION_DISABLE_PIPELINES` Environment Variables.
781
+ */
782
+ @property (readwrite, nonatomic) MTLShaderValidation shaderValidation API_AVAILABLE(macos(15.0), ios(18.0));
783
+
784
+
785
+ @end
786
+
787
+
788
+ NS_ASSUME_NONNULL_END