peachsim 0.1.1684 → 0.1.1700
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bridge-flow-runner.ts +61 -39
- package/cli/commands/agent-wrapper.ts +21 -10
- package/cli/commands/control.ts +27 -7
- package/cli/commands/coverage-swift.ts +72 -5
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/detect.ts +17 -4
- package/cli/commands/inspect/actions.ts +1 -0
- package/cli/commands/maestro-compare.ts +25 -99
- package/cli/commands/screenshot.ts +12 -0
- package/cli/help-core.ts +3 -4
- package/cli/maestro-compare.ts +172 -4
- package/cli/outbound-endpoints.ts +2 -10
- package/detox/index.ts +15 -0
- package/detox/launch-permissions.ts +169 -0
- package/dist-lib/agent-daemon-client.cjs +2 -2
- package/dist-lib/agent-events.cjs +2 -2
- package/dist-lib/attached-projects.cjs +2 -2
- package/dist-lib/auth/shared-session.cjs +2 -2
- package/dist-lib/backend-origin.cjs +2 -2
- package/dist-lib/beta.cjs +2 -2
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +2 -2
- package/dist-lib/bridge-contract-input.cjs +2 -2
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -2
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +6729 -3591
- package/dist-lib/capture-contract.cjs +2 -2
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -2
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +2 -2
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +104 -3
- package/dist-lib/dev-bundle-resolution.cjs +208 -44
- package/dist-lib/expo-swift-bundle.cjs +3475 -2137
- package/dist-lib/expo-swift-metadata.cjs +2 -2
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +2 -2
- package/dist-lib/host/bridge-host.cjs +8970 -3652
- package/dist-lib/host/fetch-proxy-handler.cjs +332 -40
- package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +2 -2
- package/dist-lib/host/websocket-proxy.cjs +2 -2
- package/dist-lib/index.cjs +469 -143
- package/dist-lib/jump-to-source-babel.cjs +2 -2
- package/dist-lib/jump-to-source-native.cjs +2 -2
- package/dist-lib/kotlin-host.cjs +2 -2
- package/dist-lib/menu.cjs +2 -2
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +2 -2
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +2 -2
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +465 -139
- package/dist-lib/native-app-identity-project.cjs +209 -86
- package/dist-lib/native-app-identity-project.mjs +251 -116
- package/dist-lib/native-app-identity.cjs +2 -2
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +2 -2
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +2 -2
- package/dist-lib/public-brand.cjs +2 -2
- package/dist-lib/public-origins-lib-esm.json +27 -23
- package/dist-lib/public-origins-lib.json +221 -88
- package/dist-lib/react-native-host-modules.cjs +2 -2
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
- package/dist-lib/sdk.cjs +3 -3
- package/dist-lib/sdk.mjs +2 -2
- package/dist-lib/skills.cjs +20997 -16596
- package/dist-lib/swift-compile.cjs +3075 -459
- package/dist-lib/swift-compile.mjs +3028 -415
- package/dist-lib/swift-package.cjs +131 -69
- package/dist-lib/swift-package.mjs +126 -68
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +31 -4
- package/dist-lib/swift.cjs +2 -2
- package/dist-lib/vite-swift.cjs +5049 -1704
- package/dist-lib/vite.cjs +261 -58
- package/dist-lib/worklet-executable.cjs +8 -5
- package/dist-lib/worklet-executable.mjs +7 -4
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -220
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +98 -3
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
- package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
- package/sdk/ios/usr/include/complex.h +167 -0
- package/sdk/ios/usr/include/copyfile.h +143 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
- package/sdk/ios/usr/include/mach/mach_types.h +1 -0
- package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
- package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
- package/sdk/ios/usr/include/malloc/_platform.h +80 -0
- package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
- package/sdk/ios/usr/include/malloc/malloc.h +768 -0
- package/sdk/ios/usr/include/math.h +835 -2
- package/sdk/ios/usr/include/os/availability.h +168 -6
- package/sdk/ios/usr/include/os/base.h +351 -0
- package/sdk/ios/usr/include/os/clock.h +18 -0
- package/sdk/ios/usr/include/os/lock.h +232 -10
- package/sdk/ios/usr/include/os/log.h +521 -38
- package/sdk/ios/usr/include/os/object.h +320 -3
- package/sdk/ios/usr/include/os/trace.h +492 -0
- package/sdk/ios/usr/include/os/trace_base.h +167 -0
- package/sdk/ios/usr/include/os/workgroup.h +37 -0
- package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
- package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
- package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
- package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
- package/sdk/ios/usr/include/sys/cdefs.h +38 -1
- package/sdk/ios/wasm/include/unistd.h +3 -0
- package/skills/contrast/SKILL.md +3 -0
- package/src/codex-client.ts +11 -6
- package/src/dev-bundle-resolution.ts +124 -48
- package/src/expo-native-workspace.ts +176 -0
- package/src/expo-swift-host.ts +161 -26
- package/src/expo-swift-ready.ts +14 -28
- package/src/expoSwiftContract.ts +4 -1
- package/src/generated/swift-c-predefines.json +2044 -0
- package/src/host/bridge-host.ts +5 -0
- package/src/installed-package-versions.ts +14 -1
- package/src/metro-project-root.ts +44 -33
- package/src/native-app-identity-project.ts +1 -0
- package/src/nitro-adapter.lock.json +916 -10
- package/src/nitro-adapter.ts +33 -24
- package/src/nitro-bundle.ts +108 -21
- package/src/nitro-compile.ts +36 -5
- package/src/nitro-source.ts +13 -3
- package/src/nitroAdapterContract.ts +100 -20
- package/src/nitroContract.ts +18 -2
- package/src/node-http-fetch.ts +116 -0
- package/src/packageVersionsContract.ts +46 -0
- package/src/serverDiscoveryContract.ts +1 -0
- package/src/settingsContract.ts +0 -30
- package/src/swift-binary-modules.ts +20 -5
- package/src/swift-compile.ts +598 -81
- package/src/swift-coverage/package.ts +3 -1
- package/src/swift-coverage/xcode-assets.ts +66 -5
- package/src/swift-coverage/xcode-packages.ts +11 -6
- package/src/swift-host.ts +347 -60
- package/src/swift-objc-compile.ts +52 -10
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-platform.ts +2 -2
- package/src/swift-objc-standin.ts +53 -13
- package/src/swift-package-manifest.ts +151 -28
- package/src/swift-package.ts +158 -75
- package/src/swift-packages.ts +141 -44
- package/src/swift-source-file.ts +10 -15
- package/src/swift-source-pods.ts +126 -41
- package/src/swift-standin-digest.ts +77 -0
- package/src/swift-standin-emit.ts +40 -4
- package/src/swift-standins.ts +154 -31
- package/src/swift-submit.ts +5 -0
- package/src/swift-toolchain.ts +38 -0
- package/src/swiftContract.ts +168 -75
- package/src/target-matcher.ts +15 -2
- package/src/vite-plugin.ts +0 -10
- package/src/worklet-executable.ts +7 -3
- package/src/xcode-json-project.ts +14 -2
- package/src/xcode-project.ts +215 -100
- package/src/settings-flags.ts +0 -107
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLDeviceCertification.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014-2024 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Metal/MTLDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
typedef NSInteger NSDeviceCertification NS_TYPED_ENUM API_AVAILABLE(ios(18.0), macos(15.0));
|
|
13
|
+
API_AVAILABLE(ios(18.0), macos(15.0)) extern NSDeviceCertification const NSDeviceCertificationiPhonePerformanceGaming;
|
|
14
|
+
|
|
15
|
+
typedef NSInteger NSProcessPerformanceProfile NS_TYPED_ENUM API_AVAILABLE(ios(18.0), macos(15.0));
|
|
16
|
+
API_AVAILABLE(ios(18.0), macos(15.0)) extern NSProcessPerformanceProfile const NSProcessPerformanceProfileDefault;
|
|
17
|
+
API_AVAILABLE(ios(18.0), macos(15.0)) extern NSProcessPerformanceProfile const NSProcessPerformanceProfileSustained;
|
|
18
|
+
|
|
19
|
+
API_AVAILABLE(ios(18.0), macos(15.0)) extern const NSNotificationName NSProcessInfoPerformanceProfileDidChangeNotification;
|
|
20
|
+
|
|
21
|
+
API_AVAILABLE(ios(18.0), macos(15.0))
|
|
22
|
+
@interface NSProcessInfo (NSDeviceCertification)
|
|
23
|
+
|
|
24
|
+
- (BOOL)isDeviceCertifiedFor:(NSDeviceCertification)performanceTier;
|
|
25
|
+
|
|
26
|
+
- (BOOL)hasPerformanceProfile:(NSProcessPerformanceProfile)performanceProfile;
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLDrawable.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
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
@protocol MTLDrawable;
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
@typedef MTLDrawablePresentedHandler
|
|
16
|
+
@abstract The presented callback function protocol
|
|
17
|
+
@discussion Be careful when you use delta between this presentedTime and previous frame's presentedTime to animate next frame. If the frame was presented using presentAfterMinimumDuration or presentAtTime, the presentedTime might includes delays to meet your specified present time. If you want to measure how much frame you can achieve, use GPUStartTime in the first command buffer of your frame rendering and GPUEndTime of your last frame rendering to calculate the frame interval.
|
|
18
|
+
*/
|
|
19
|
+
typedef void (^ NS_SWIFT_SENDABLE MTLDrawablePresentedHandler)(id<MTLDrawable>);
|
|
20
|
+
|
|
21
|
+
/*!
|
|
22
|
+
@protocol MTLDrawable
|
|
23
|
+
@abstract All "drawable" objects (such as those coming from CAMetalLayer) are expected to conform to this protocol
|
|
24
|
+
*/
|
|
25
|
+
API_AVAILABLE(macos(10.11), ios(8.0))
|
|
26
|
+
@protocol MTLDrawable <NSObject>
|
|
27
|
+
|
|
28
|
+
/* Present this drawable as soon as possible */
|
|
29
|
+
- (void)present;
|
|
30
|
+
|
|
31
|
+
/* Present this drawable at the given host time */
|
|
32
|
+
- (void)presentAtTime:(CFTimeInterval)presentationTime;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@end
|
|
36
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLDynamicLibrary.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2020 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLDevice.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
MTL_EXTERN NSErrorDomain const MTLDynamicLibraryDomain API_AVAILABLE(macos(11.0), ios(14.0));
|
|
15
|
+
|
|
16
|
+
typedef NS_ENUM(NSUInteger, MTLDynamicLibraryError)
|
|
17
|
+
{
|
|
18
|
+
MTLDynamicLibraryErrorNone = 0,
|
|
19
|
+
MTLDynamicLibraryErrorInvalidFile = 1,
|
|
20
|
+
MTLDynamicLibraryErrorCompilationFailure = 2,
|
|
21
|
+
MTLDynamicLibraryErrorUnresolvedInstallName = 3,
|
|
22
|
+
MTLDynamicLibraryErrorDependencyLoadFailure = 4,
|
|
23
|
+
MTLDynamicLibraryErrorUnsupported = 5,
|
|
24
|
+
} API_AVAILABLE(macos(11.0), ios(14.0));
|
|
25
|
+
|
|
26
|
+
/*!
|
|
27
|
+
@protocol MTLDynamicLibrary
|
|
28
|
+
@abstract A container for the binary representation of code compiled for a MTLDevice.
|
|
29
|
+
@discussion MTLDynamicLibrary can be created in two ways:
|
|
30
|
+
1) MTLDevice newDynamicLibrary:error:
|
|
31
|
+
This method takes an MTLLibrary (which has .type set to MTLLibraryTypeDynamic) and then compiles the code in the MTLLibrary for the current device.
|
|
32
|
+
2) MTLDevice newDynamicLibraryWithURL:error
|
|
33
|
+
This method loads from a file a previously serialized MTLDynamicLibrary. If the dynamic library containg compiled code for the current device, that code is loaded.
|
|
34
|
+
Otherwise, as a fallback, the MTLLibrary contents used to create the MTLDynamicLibrary are compiled for the current device similar to path #1 above.
|
|
35
|
+
This path may also be taken if the driver for the current device has been updated or has otherwise become incompatible with the compiled code.
|
|
36
|
+
Either way, if a MTLDynamicLibrary is successfully created, it contains compiled code for the current device.
|
|
37
|
+
That code may be used via MTLComputePipelineDescriptor .preloadedLibraries to allow the code to be loaded into a MTLComputePipelineState
|
|
38
|
+
It may also be used as an argument to MTLCompileOptions .libraries so that another MTLLibrary is linked against the code in this MTLDynamicLibrary.
|
|
39
|
+
Such library dependencies are encoded into the resulting MTLLibrary by embedding the install name of the MTLDynamicLibrary.
|
|
40
|
+
When creating a MTLComputePipelineState from a function in that MTLLibrary, the embedded install names are used to load MTLDynamicLibrary instances via path #2 (possibly falling back to #1 as well).
|
|
41
|
+
If an embedded install name could not be used to load a MTLDynamicLibrary from the path indicated by the install name, the creation of the MTLComputePipelineState fails.
|
|
42
|
+
The set of both the implictly loaded MTLDynamicLibrary and the MTLDynamicLibrary specified with .preloadedLibraries are used to resolve any unresolved symbols in the source MTLLibrary (or in other MTLDynamicLibrary).
|
|
43
|
+
If any unresolved symbols remain after searching the set, the creation of the MTLComputePipelineState fails.
|
|
44
|
+
Otherwise, the MTLComputePipelineState creation succeeds, and the set of MTLDynamicLibraries used are retained by the MTLComputePipelineState.
|
|
45
|
+
*/
|
|
46
|
+
API_AVAILABLE(macos(11.0), ios(14.0)) NS_SWIFT_SENDABLE
|
|
47
|
+
@protocol MTLDynamicLibrary <NSObject>
|
|
48
|
+
|
|
49
|
+
/*!
|
|
50
|
+
@property label
|
|
51
|
+
@abstract A string to help identify this object.
|
|
52
|
+
*/
|
|
53
|
+
@property (nullable, copy, atomic) NSString *label;
|
|
54
|
+
|
|
55
|
+
/*!
|
|
56
|
+
@property device
|
|
57
|
+
@abstract The device this resource was created against. This resource can only be used with this device.
|
|
58
|
+
*/
|
|
59
|
+
@property (readonly) id<MTLDevice> device;
|
|
60
|
+
|
|
61
|
+
/*!
|
|
62
|
+
@property installName
|
|
63
|
+
@abstract The installName of this dynamic library. Can not be nil.
|
|
64
|
+
*/
|
|
65
|
+
@property (readonly) NSString *installName;
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
@method serializeToURL:error:
|
|
69
|
+
@abstract Writes the contents of the MTLDynamicLibrary to a file.
|
|
70
|
+
@discussion On success, the file will contain a representation of the MTLLibrary from which the MTLDynamicLibrary was originally created, as well as the compiled code for the current device.
|
|
71
|
+
Such files may be combined with offline tools to contain the compiled code for multiple devices.
|
|
72
|
+
If this MTLDynamicLibrary was created from a file that contained compiled code for multiple devices, the compiled code for all other devices is not written (since only compiled code for the current device was loaded).
|
|
73
|
+
@param url The file URL to which to write the content of the dynamic library. It the URL does not refer to a file, the function fails.
|
|
74
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLDynamicLibraryDomain domain. Other possible errors can be file access or I/O related.
|
|
75
|
+
@return Whether or not the writing the file succeeded.
|
|
76
|
+
*/
|
|
77
|
+
- (BOOL) serializeToURL:(NSURL *)url error:(NSError **)error;
|
|
78
|
+
|
|
79
|
+
@end
|
|
80
|
+
|
|
81
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLEvent.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLDevice.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
API_AVAILABLE(macos(10.14), ios(12.0)) NS_SWIFT_SENDABLE
|
|
15
|
+
@protocol MTLEvent <NSObject>
|
|
16
|
+
|
|
17
|
+
/*!
|
|
18
|
+
@property device
|
|
19
|
+
@abstract The device this event can be used with. Will be nil when the event is shared across devices (i.e. MTLSharedEvent).
|
|
20
|
+
*/
|
|
21
|
+
@property (nullable, readonly) id <MTLDevice> device;
|
|
22
|
+
|
|
23
|
+
/*!
|
|
24
|
+
@property label
|
|
25
|
+
@abstract A string to help identify this object.
|
|
26
|
+
*/
|
|
27
|
+
@property (nullable, copy, atomic) NSString *label;
|
|
28
|
+
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
/*!
|
|
32
|
+
@class MTLSharedEventListener
|
|
33
|
+
@abstract This class provides a simple interface for handling the dispatching of MTLSharedEvent notifications from Metal.
|
|
34
|
+
*/
|
|
35
|
+
MTL_EXPORT API_AVAILABLE(macos(10.14), ios(12.0)) NS_SWIFT_SENDABLE
|
|
36
|
+
@interface MTLSharedEventListener : NSObject
|
|
37
|
+
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
|
38
|
+
- (instancetype)initWithDispatchQueue:(dispatch_queue_t)dispatchQueue NS_DESIGNATED_INITIALIZER;
|
|
39
|
+
@property (nonnull, readonly) dispatch_queue_t dispatchQueue;
|
|
40
|
+
|
|
41
|
+
// A shared instance constructed with a standard serial dispatch queue.
|
|
42
|
+
// This instance can be used for short-running notifications without QoS requirements.
|
|
43
|
+
+ (MTLSharedEventListener*)sharedListener API_AVAILABLE(macos(26.0), ios(26.0));
|
|
44
|
+
@end
|
|
45
|
+
|
|
46
|
+
@class MTLSharedEventHandle;
|
|
47
|
+
@protocol MTLSharedEvent;
|
|
48
|
+
|
|
49
|
+
typedef void (^ NS_SWIFT_SENDABLE MTLSharedEventNotificationBlock)(id <MTLSharedEvent>, uint64_t value);
|
|
50
|
+
|
|
51
|
+
API_AVAILABLE(macos(10.14), ios(12.0))
|
|
52
|
+
@protocol MTLSharedEvent <MTLEvent>
|
|
53
|
+
|
|
54
|
+
// When the event's signaled value reaches value or higher, invoke the block on the dispatch queue owned by the listener.
|
|
55
|
+
- (void)notifyListener:(MTLSharedEventListener *)listener atValue:(uint64_t)value block:(MTLSharedEventNotificationBlock)block;
|
|
56
|
+
|
|
57
|
+
// Convenience method for creating a shared event handle that may be passed to other processes via XPC.
|
|
58
|
+
- (MTLSharedEventHandle *)newSharedEventHandle;
|
|
59
|
+
|
|
60
|
+
// Synchronously wait for the signaledValue to be greater than or equal to 'value', with a timeout
|
|
61
|
+
// specified in milliseconds. Returns YES if the value was signaled before the timeout, otherwise NO.
|
|
62
|
+
- (BOOL)waitUntilSignaledValue:(uint64_t)value timeoutMS:(uint64_t)milliseconds API_AVAILABLE(macos(12.0), ios(15.0)) NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use 'await valueSignaled(...)' instead.");
|
|
63
|
+
|
|
64
|
+
@property (readwrite) uint64_t signaledValue; // Read or set signaled value
|
|
65
|
+
|
|
66
|
+
@end
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
// MTLSharedEventHandle objects may be passed between processes via XPC connections and then used to recreate
|
|
70
|
+
// a MTLSharedEvent via an existing MTLDevice.
|
|
71
|
+
MTL_EXPORT API_AVAILABLE(macos(10.14), ios(12.0)) NS_SWIFT_SENDABLE
|
|
72
|
+
@interface MTLSharedEventHandle : NSObject <NSSecureCoding>
|
|
73
|
+
{
|
|
74
|
+
struct MTLSharedEventHandlePrivate *_priv;
|
|
75
|
+
}
|
|
76
|
+
@property (readonly, nullable) NSString *label;
|
|
77
|
+
@end
|
|
78
|
+
|
|
79
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLFence.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLDevice.h>
|
|
11
|
+
|
|
12
|
+
API_AVAILABLE(macos(10.13), ios(10.0)) NS_SWIFT_SENDABLE
|
|
13
|
+
@protocol MTLFence <NSObject>
|
|
14
|
+
@property (nonnull, readonly) id <MTLDevice> device;
|
|
15
|
+
|
|
16
|
+
/*!
|
|
17
|
+
@property label
|
|
18
|
+
@abstract A string to help identify this object.
|
|
19
|
+
*/
|
|
20
|
+
@property (nullable, copy, atomic) NSString *label;
|
|
21
|
+
|
|
22
|
+
@end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLFunctionConstantValues.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLArgument.h>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
MTL_EXPORT API_AVAILABLE(macos(10.12), ios(10.0))
|
|
16
|
+
@interface MTLFunctionConstantValues : NSObject <NSCopying>
|
|
17
|
+
|
|
18
|
+
// using indices
|
|
19
|
+
- (void)setConstantValue:(const void *)value type:(MTLDataType)type atIndex:(NSUInteger)index;
|
|
20
|
+
- (void)setConstantValues:(const void *)values type:(MTLDataType)type withRange:(NSRange)range;
|
|
21
|
+
|
|
22
|
+
// using names
|
|
23
|
+
- (void)setConstantValue:(const void *)value type:(MTLDataType)type withName:(NSString *)name;
|
|
24
|
+
|
|
25
|
+
// delete all the constants
|
|
26
|
+
- (void)reset;
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLFunctionDescriptor.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <Metal/MTLDefines.h>
|
|
11
|
+
#import <Metal/MTLArgument.h>
|
|
12
|
+
#import <Metal/MTLFunctionConstantValues.h>
|
|
13
|
+
|
|
14
|
+
@protocol MTLBinaryArchive;
|
|
15
|
+
|
|
16
|
+
typedef NS_OPTIONS(NSUInteger, MTLFunctionOptions) {
|
|
17
|
+
/**
|
|
18
|
+
* @brief Default usage
|
|
19
|
+
*/
|
|
20
|
+
MTLFunctionOptionNone = 0,
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @brief Compiles the found function. This enables dynamic linking of this `MTLFunction`.
|
|
24
|
+
* Only supported for `visible` functions.
|
|
25
|
+
*/
|
|
26
|
+
MTLFunctionOptionCompileToBinary API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 1 << 0,
|
|
27
|
+
/**
|
|
28
|
+
* @brief stores and tracks this function in a Metal Pipelines Script
|
|
29
|
+
* This flag is optional and only supported in the context of binary archives.
|
|
30
|
+
* @discussion This flag is required for inspecting and consuming binary archives with specialized MTLFunctions via the metal-source tool. It is not required for recompilation, nor for storing functions in binary archives. Set this flag only if you intend to use metal-source on a serialized binary archive.
|
|
31
|
+
*/
|
|
32
|
+
MTLFunctionOptionStoreFunctionInMetalPipelinesScript API_AVAILABLE(macos(15.0), ios(18.0)) = 1 << 1,
|
|
33
|
+
MTLFunctionOptionStoreFunctionInMetalScript API_DEPRECATED_WITH_REPLACEMENT("MTLFunctionOptionStoreFunctionInMetalPipelinesScript", macos(14.0, 15.0), ios(17.0, 18.0), tvos(17.0, 18.0)) = 1 << 1,
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @brief Function creation fails (i.e nil is returned) if:
|
|
37
|
+
* - A lookup binary archive has been specified
|
|
38
|
+
* - The function has not been found in the archive
|
|
39
|
+
*/
|
|
40
|
+
MTLFunctionOptionFailOnBinaryArchiveMiss API_AVAILABLE(macos(15.0), ios(18.0)) = 1 << 2,
|
|
41
|
+
/**
|
|
42
|
+
* @brief Compiles the function to have its function handles return a constant MTLResourceID across
|
|
43
|
+
* all pipeline states. The function needs to be linked to the pipeline that will use this function.
|
|
44
|
+
* This function option can only be used for functions that are compiled with `MTLFunctionOptionCompileToBinary`.
|
|
45
|
+
*/
|
|
46
|
+
MTLFunctionOptionPipelineIndependent API_AVAILABLE(macos(26.0), ios(26.0)) = 1 << 3,
|
|
47
|
+
} API_AVAILABLE(macos(11.0), ios(14.0));
|
|
48
|
+
|
|
49
|
+
MTL_EXPORT API_AVAILABLE(macos(11.0), ios(14.0))
|
|
50
|
+
@interface MTLFunctionDescriptor : NSObject <NSCopying>
|
|
51
|
+
|
|
52
|
+
/*!
|
|
53
|
+
@method functionDescriptor
|
|
54
|
+
@abstract Create an autoreleased function descriptor
|
|
55
|
+
*/
|
|
56
|
+
+ (nonnull MTLFunctionDescriptor *)functionDescriptor;
|
|
57
|
+
|
|
58
|
+
/*!
|
|
59
|
+
* @property name
|
|
60
|
+
* @abstract The name of the `visible` function to find.
|
|
61
|
+
*/
|
|
62
|
+
@property (nullable, copy, nonatomic) NSString *name;
|
|
63
|
+
|
|
64
|
+
/*!
|
|
65
|
+
* @property specializedName
|
|
66
|
+
* @abstract An optional new name for a `visible` function to allow reuse with different specializations.
|
|
67
|
+
*/
|
|
68
|
+
@property (nullable, copy, nonatomic) NSString *specializedName;
|
|
69
|
+
|
|
70
|
+
/*!
|
|
71
|
+
* @property constantValues
|
|
72
|
+
* @abstract The set of constant values assigned to the function constants. Compilation fails if you do not provide valid constant values for all required function constants.
|
|
73
|
+
*/
|
|
74
|
+
@property (nullable, nonatomic, copy) MTLFunctionConstantValues *constantValues;
|
|
75
|
+
|
|
76
|
+
/*!
|
|
77
|
+
* @property options
|
|
78
|
+
* @abstract The options to use for this new `MTLFunction`.
|
|
79
|
+
*/
|
|
80
|
+
@property (nonatomic) MTLFunctionOptions options;
|
|
81
|
+
|
|
82
|
+
/*!
|
|
83
|
+
@property binaryArchives
|
|
84
|
+
@abstract The array of archives to be searched.
|
|
85
|
+
@discussion Binary archives to be searched for precompiled functions during the compilation of this function.
|
|
86
|
+
*/
|
|
87
|
+
@property (readwrite, nullable, nonatomic, copy) NSArray<id<MTLBinaryArchive>> *binaryArchives API_AVAILABLE(macos(12.0), ios(15.0));
|
|
88
|
+
|
|
89
|
+
@end
|
|
90
|
+
|
|
91
|
+
MTL_EXPORT API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0))
|
|
92
|
+
@interface MTLIntersectionFunctionDescriptor : MTLFunctionDescriptor <NSCopying>
|
|
93
|
+
|
|
94
|
+
@end
|
|
95
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLFunctionHandle.h
|
|
3
|
+
// Framework
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLTypes.h>
|
|
11
|
+
#import <Metal/MTLLibrary.h>
|
|
12
|
+
|
|
13
|
+
API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) NS_SWIFT_SENDABLE
|
|
14
|
+
@protocol MTLFunctionHandle <NSObject>
|
|
15
|
+
@property (readonly) MTLFunctionType functionType;
|
|
16
|
+
@property (readonly, nonnull) NSString* name;
|
|
17
|
+
@property (readonly, nonnull) id<MTLDevice> device;
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
@property gpuResourceID
|
|
21
|
+
@abstract Handle of the GPU resource suitable for storing in an Intersection Function Buffer.
|
|
22
|
+
@discussion The handle must have been created from an intersection function annotated with the `intersection_function_buffer` tag.
|
|
23
|
+
*/
|
|
24
|
+
@property (readonly) MTLResourceID gpuResourceID API_AVAILABLE(macos(26.0), ios(26.0));
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
#import <Metal/MTLVisibleFunctionTable.h>
|
|
29
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLFunctionLog.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Metal/MTLTypes.h>
|
|
9
|
+
|
|
10
|
+
@protocol MTLFunction;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
API_AVAILABLE(macos(11.0), ios(14.0))
|
|
14
|
+
typedef NS_ENUM(NSUInteger, MTLFunctionLogType) {
|
|
15
|
+
MTLFunctionLogTypeValidation = 0, /// validation
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
API_AVAILABLE(macos(11.0), ios(14.0))
|
|
19
|
+
@protocol MTLLogContainer <NSObject, NSFastEnumeration>
|
|
20
|
+
@end
|
|
21
|
+
|
|
22
|
+
API_AVAILABLE(macos(11.0), ios(14.0))
|
|
23
|
+
@protocol MTLFunctionLogDebugLocation <NSObject>
|
|
24
|
+
@property (readonly, nullable, nonatomic) NSString* functionName; // faulting function
|
|
25
|
+
@property (readonly, nullable, nonatomic) NSURL* URL; // source location
|
|
26
|
+
@property (readonly, nonatomic) NSUInteger line; // line number
|
|
27
|
+
@property (readonly, nonatomic) NSUInteger column; // column in line
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
API_AVAILABLE(macos(11.0), ios(14.0))
|
|
31
|
+
@protocol MTLFunctionLog <NSObject>
|
|
32
|
+
@property (readonly, nonatomic) MTLFunctionLogType type;
|
|
33
|
+
@property (readonly, nullable, nonatomic) NSString* encoderLabel;
|
|
34
|
+
@property (readonly, nullable, nonatomic) id<MTLFunction> function;
|
|
35
|
+
@property (readonly, nullable, nonatomic) id<MTLFunctionLogDebugLocation> debugLocation;
|
|
36
|
+
@end
|
|
37
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLFunctionStitching.h
|
|
3
|
+
// Framework
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2021 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
|
+
|
|
13
|
+
|
|
14
|
+
#import <Metal/MTLFunctionDescriptor.h>
|
|
15
|
+
|
|
16
|
+
@protocol MTLFunction;
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
|
|
20
|
+
/*!
|
|
21
|
+
@abstract
|
|
22
|
+
A bitfield of options to create a stitched library
|
|
23
|
+
*/
|
|
24
|
+
typedef NS_OPTIONS(NSUInteger, MTLStitchedLibraryOptions)
|
|
25
|
+
{
|
|
26
|
+
MTLStitchedLibraryOptionNone = 0,
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @brief Library creation fails (i.e nil is returned) if:
|
|
30
|
+
* - A lookup binary archive has been specified
|
|
31
|
+
* - The library has not been found in the archive
|
|
32
|
+
*/
|
|
33
|
+
MTLStitchedLibraryOptionFailOnBinaryArchiveMiss = 1 << 0,
|
|
34
|
+
/**
|
|
35
|
+
* @brief stores and tracks this library in a Metal Pipelines Script
|
|
36
|
+
* This flag is optional and only supported in the context of binary archives.
|
|
37
|
+
* @discussion This flag is required for inspecting and consuming binary archives with stitched libraries via the metal-source tool. It is not required for recompilation, nor for storing stitched libraries in binary archives. Set this flag only if you intend to use metal-source on a serialized binary archive.
|
|
38
|
+
*/
|
|
39
|
+
MTLStitchedLibraryOptionStoreLibraryInMetalPipelinesScript = 1 << 1,
|
|
40
|
+
} API_AVAILABLE(macos(15.0), ios(18.0));
|
|
41
|
+
|
|
42
|
+
/*!
|
|
43
|
+
@protocol MTLFunctionStitchingAttribute
|
|
44
|
+
@abstract An attribute to be applied to the produced stitched function.
|
|
45
|
+
*/
|
|
46
|
+
API_AVAILABLE(macos(12.0), ios(15.0))
|
|
47
|
+
@protocol MTLFunctionStitchingAttribute <NSObject>
|
|
48
|
+
@end
|
|
49
|
+
|
|
50
|
+
/*!
|
|
51
|
+
@interface MTLFunctionStitchingAttributeAlwaysInline
|
|
52
|
+
@abstract Applies the `__attribute__((always_inline))` attribute to the produced stitched function.
|
|
53
|
+
*/
|
|
54
|
+
MTL_EXPORT API_AVAILABLE(macos(12.0), ios(15.0))
|
|
55
|
+
@interface MTLFunctionStitchingAttributeAlwaysInline : NSObject<MTLFunctionStitchingAttribute>
|
|
56
|
+
@end
|
|
57
|
+
|
|
58
|
+
/*!
|
|
59
|
+
@protocol MTLFunctionStitchingNode
|
|
60
|
+
@abstract A node used in a graph for stitching.
|
|
61
|
+
*/
|
|
62
|
+
API_AVAILABLE(macos(12.0), ios(15.0))
|
|
63
|
+
@protocol MTLFunctionStitchingNode <NSObject, NSCopying>
|
|
64
|
+
@end
|
|
65
|
+
|
|
66
|
+
/*!
|
|
67
|
+
@interface MTLFunctionStitchingInputNode
|
|
68
|
+
@abstract An indexed input node of the produced stitched function.
|
|
69
|
+
*/
|
|
70
|
+
MTL_EXPORT API_AVAILABLE(macos(12.0), ios(15.0))
|
|
71
|
+
@interface MTLFunctionStitchingInputNode : NSObject<MTLFunctionStitchingNode>
|
|
72
|
+
@property (readwrite, nonatomic) NSUInteger argumentIndex;
|
|
73
|
+
- (instancetype)initWithArgumentIndex:(NSUInteger)argument;
|
|
74
|
+
@end
|
|
75
|
+
|
|
76
|
+
/*!
|
|
77
|
+
@interface MTLFunctionStitchingFunctionNode
|
|
78
|
+
@abstract A function node that calls the specified function with arguments and ordering determined by data and control dependencies.
|
|
79
|
+
*/
|
|
80
|
+
MTL_EXPORT API_AVAILABLE(macos(12.0), ios(15.0))
|
|
81
|
+
@interface MTLFunctionStitchingFunctionNode : NSObject<MTLFunctionStitchingNode>
|
|
82
|
+
@property (readwrite, copy, nonnull, nonatomic) NSString* name;
|
|
83
|
+
@property (readwrite, copy, nonnull, nonatomic) NSArray<id<MTLFunctionStitchingNode>>* arguments;
|
|
84
|
+
@property (readwrite, copy, nonnull, nonatomic) NSArray<MTLFunctionStitchingFunctionNode *>* controlDependencies;
|
|
85
|
+
- (instancetype)initWithName:(nonnull NSString*)name
|
|
86
|
+
arguments:(nonnull NSArray<id<MTLFunctionStitchingNode>>*)arguments
|
|
87
|
+
controlDependencies:(nonnull NSArray<MTLFunctionStitchingFunctionNode *>*)controlDependencies;
|
|
88
|
+
@end
|
|
89
|
+
|
|
90
|
+
/*!
|
|
91
|
+
@interface MTLFunctionStitchingGraph
|
|
92
|
+
@abstract A function graph that describes a directed acyclic graph.
|
|
93
|
+
@discussion The return value of the output node will be used as the return value for the final stitched graph.
|
|
94
|
+
*/
|
|
95
|
+
MTL_EXPORT API_AVAILABLE(macos(12.0), ios(15.0))
|
|
96
|
+
@interface MTLFunctionStitchingGraph : NSObject<NSCopying>
|
|
97
|
+
@property (readwrite, copy, nonnull, nonatomic) NSString* functionName;
|
|
98
|
+
@property (readwrite, copy, nonnull, nonatomic) NSArray<MTLFunctionStitchingFunctionNode *>* nodes;
|
|
99
|
+
@property (readwrite, retain, nullable, nonatomic) MTLFunctionStitchingFunctionNode* outputNode;
|
|
100
|
+
@property (readwrite, copy, nonnull, nonatomic) NSArray<id<MTLFunctionStitchingAttribute>>* attributes;
|
|
101
|
+
- (instancetype)initWithFunctionName:(nonnull NSString*)functionName
|
|
102
|
+
nodes:(nonnull NSArray<MTLFunctionStitchingFunctionNode *>*)nodes
|
|
103
|
+
outputNode:(nullable MTLFunctionStitchingFunctionNode*)outputNode
|
|
104
|
+
attributes:(nonnull NSArray<id<MTLFunctionStitchingAttribute>>*)attributes;
|
|
105
|
+
@end
|
|
106
|
+
|
|
107
|
+
/*!
|
|
108
|
+
@interface MTLStitchedLibraryDescriptor
|
|
109
|
+
@abstract A container for the graphs and functions needed to create the stitched functions described by the graphs.
|
|
110
|
+
*/
|
|
111
|
+
MTL_EXPORT API_AVAILABLE(macos(12.0), ios(15.0))
|
|
112
|
+
@interface MTLStitchedLibraryDescriptor : NSObject<NSCopying>
|
|
113
|
+
@property (readwrite, copy, nonnull, nonatomic) NSArray<MTLFunctionStitchingGraph *>* functionGraphs;
|
|
114
|
+
@property (readwrite, copy, nonnull, nonatomic) NSArray<id<MTLFunction>>* functions;
|
|
115
|
+
|
|
116
|
+
/*!
|
|
117
|
+
@property binaryArchives
|
|
118
|
+
@abstract The array of archives to be searched.
|
|
119
|
+
@discussion Binary archives to be searched for precompiled stitched libraries during the compilation of this library.
|
|
120
|
+
*/
|
|
121
|
+
@property (readwrite, copy, nonnull, nonatomic) NSArray<id<MTLBinaryArchive>>* binaryArchives API_AVAILABLE(macos(15.0), ios(18.0));
|
|
122
|
+
|
|
123
|
+
/*!
|
|
124
|
+
* @property options
|
|
125
|
+
* @abstract The options to use for this new MTLLibrary.
|
|
126
|
+
*/
|
|
127
|
+
@property (readwrite, nonatomic) MTLStitchedLibraryOptions options API_AVAILABLE(macos(15.0), ios(18.0));
|
|
128
|
+
@end
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLGPUAddress.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2025 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifdef __METAL_VERSION__
|
|
9
|
+
|
|
10
|
+
#import <metal_stdlib>
|
|
11
|
+
|
|
12
|
+
#else
|
|
13
|
+
|
|
14
|
+
#include <stdint.h>
|
|
15
|
+
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
/// A 64-bit unsigned integer type appropriate for storing GPU addresses.
|
|
19
|
+
typedef uint64_t MTLGPUAddress;
|