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,549 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLLibrary.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLResource.h>
|
|
11
|
+
#import <Metal/MTLArgument.h>
|
|
12
|
+
#import <Metal/MTLTypes.h>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
#import <Metal/MTLFunctionDescriptor.h>
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
@protocol MTLDevice;
|
|
19
|
+
@protocol MTLFunction;
|
|
20
|
+
@protocol MTLLibrary;
|
|
21
|
+
@class MTLCompileOptions;
|
|
22
|
+
@class MTLFunctionConstantValues;
|
|
23
|
+
@class MTLIntersectionFunctionDescriptor;
|
|
24
|
+
@protocol MTLDynamicLibrary;
|
|
25
|
+
|
|
26
|
+
@class MTLRenderPipelineReflection;
|
|
27
|
+
@class MTLComputePipelineReflection;
|
|
28
|
+
|
|
29
|
+
@protocol MTLLibrary;
|
|
30
|
+
@protocol MTLRenderPipelineState;
|
|
31
|
+
@protocol MTLComputePipelineState;
|
|
32
|
+
|
|
33
|
+
/* Convenience typedefs that make it easy to declare storage for certain return types. */
|
|
34
|
+
typedef __autoreleasing MTLRenderPipelineReflection * __nullable MTLAutoreleasedRenderPipelineReflection;
|
|
35
|
+
typedef __autoreleasing MTLComputePipelineReflection * __nullable MTLAutoreleasedComputePipelineReflection;
|
|
36
|
+
|
|
37
|
+
typedef void (^MTLNewLibraryCompletionHandler)(id <MTLLibrary> __nullable library, NSError * __nullable error);
|
|
38
|
+
|
|
39
|
+
typedef void (^MTLNewRenderPipelineStateCompletionHandler)(id <MTLRenderPipelineState> __nullable renderPipelineState, NSError * __nullable error);
|
|
40
|
+
|
|
41
|
+
typedef void (^MTLNewRenderPipelineStateWithReflectionCompletionHandler)(id <MTLRenderPipelineState> __nullable renderPipelineState, MTLRenderPipelineReflection * _Nullable_result reflection, NSError * __nullable error);
|
|
42
|
+
|
|
43
|
+
typedef void (^MTLNewComputePipelineStateCompletionHandler)(id <MTLComputePipelineState> __nullable computePipelineState, NSError * __nullable error);
|
|
44
|
+
|
|
45
|
+
typedef void (^MTLNewComputePipelineStateWithReflectionCompletionHandler)(id <MTLComputePipelineState> __nullable computePipelineState, MTLComputePipelineReflection * _Nullable_result reflection, NSError * __nullable error);
|
|
46
|
+
|
|
47
|
+
typedef void (^MTLNewDynamicLibraryCompletionHandler)(id<MTLDynamicLibrary> __nullable library, NSError* __nullable error);
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@protocol MTLArgumentEncoder;
|
|
51
|
+
|
|
52
|
+
typedef __autoreleasing MTLArgument *__nullable MTLAutoreleasedArgument API_DEPRECATED("Use MTLBinding and cast to specific Binding (MTLTextureBinding, MTLBufferBinding, .etc) instead", macos(10.11, 13.0), ios(8.0, 16.0));
|
|
53
|
+
|
|
54
|
+
typedef NS_ENUM(NSUInteger, MTLPatchType) {
|
|
55
|
+
MTLPatchTypeNone = 0,
|
|
56
|
+
MTLPatchTypeTriangle = 1,
|
|
57
|
+
MTLPatchTypeQuad = 2,
|
|
58
|
+
} API_AVAILABLE(macos(10.12), ios(10.0));
|
|
59
|
+
|
|
60
|
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
|
|
61
|
+
@interface MTLVertexAttribute : NSObject
|
|
62
|
+
|
|
63
|
+
@property (readonly) NSString *name;
|
|
64
|
+
@property (readonly) NSUInteger attributeIndex;
|
|
65
|
+
@property (readonly) MTLDataType attributeType API_AVAILABLE(macos(10.11), ios(8.3));
|
|
66
|
+
@property (readonly, getter=isActive) BOOL active;
|
|
67
|
+
@property (readonly, getter=isPatchData) BOOL patchData API_AVAILABLE(macos(10.12), ios(10.0));
|
|
68
|
+
@property (readonly, getter=isPatchControlPointData) BOOL patchControlPointData API_AVAILABLE(macos(10.12), ios(10.0));
|
|
69
|
+
|
|
70
|
+
@end
|
|
71
|
+
|
|
72
|
+
MTL_EXPORT API_AVAILABLE(macos(10.12), ios(10.0))
|
|
73
|
+
@interface MTLAttribute : NSObject
|
|
74
|
+
|
|
75
|
+
@property (readonly) NSString *name;
|
|
76
|
+
@property (readonly) NSUInteger attributeIndex;
|
|
77
|
+
@property (readonly) MTLDataType attributeType;
|
|
78
|
+
@property (readonly, getter=isActive) BOOL active;
|
|
79
|
+
@property (readonly, getter=isPatchData) BOOL patchData API_AVAILABLE(macos(10.12), ios(10.0));
|
|
80
|
+
@property (readonly, getter=isPatchControlPointData) BOOL patchControlPointData API_AVAILABLE(macos(10.12), ios(10.0));
|
|
81
|
+
|
|
82
|
+
@end
|
|
83
|
+
|
|
84
|
+
/*!
|
|
85
|
+
@enum MTLFunctionType
|
|
86
|
+
@abstract An identifier for a top-level Metal function.
|
|
87
|
+
@discussion Each location in the API where a program is used requires a function written for that specific usage.
|
|
88
|
+
|
|
89
|
+
@constant MTLFunctionTypeVertex
|
|
90
|
+
A vertex shader, usable for a MTLRenderPipelineState.
|
|
91
|
+
|
|
92
|
+
@constant MTLFunctionTypeFragment
|
|
93
|
+
A fragment shader, usable for a MTLRenderPipelineState.
|
|
94
|
+
|
|
95
|
+
@constant MTLFunctionTypeKernel
|
|
96
|
+
A compute kernel, usable to create a MTLComputePipelineState.
|
|
97
|
+
*/
|
|
98
|
+
typedef NS_ENUM(NSUInteger, MTLFunctionType) {
|
|
99
|
+
MTLFunctionTypeVertex = 1,
|
|
100
|
+
MTLFunctionTypeFragment = 2,
|
|
101
|
+
MTLFunctionTypeKernel = 3,
|
|
102
|
+
MTLFunctionTypeVisible API_AVAILABLE(macos(11.0), ios(14.0)) = 5,
|
|
103
|
+
MTLFunctionTypeIntersection API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 6,
|
|
104
|
+
MTLFunctionTypeMesh API_AVAILABLE(macos(13.0), ios(16.0)) = 7,
|
|
105
|
+
MTLFunctionTypeObject API_AVAILABLE(macos(13.0), ios(16.0)) = 8,
|
|
106
|
+
} API_AVAILABLE(macos(10.11), ios(8.0));
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/*!
|
|
110
|
+
@interface MTLFunctionConstant
|
|
111
|
+
@abstract describe an uberShader constant used by the function
|
|
112
|
+
*/
|
|
113
|
+
MTL_EXPORT API_AVAILABLE(macos(10.12), ios(10.0))
|
|
114
|
+
@interface MTLFunctionConstant : NSObject
|
|
115
|
+
|
|
116
|
+
@property (readonly) NSString *name;
|
|
117
|
+
@property (readonly) MTLDataType type;
|
|
118
|
+
@property (readonly) NSUInteger index;
|
|
119
|
+
@property (readonly) BOOL required;
|
|
120
|
+
|
|
121
|
+
@end
|
|
122
|
+
|
|
123
|
+
/*!
|
|
124
|
+
@protocol MTLFunction
|
|
125
|
+
@abstract A handle to intermediate code used as inputs for either a MTLComputePipelineState or a MTLRenderPipelineState.
|
|
126
|
+
@discussion MTLFunction is a single vertex shader, fragment shader, or compute function. A Function can only be used with the device that it was created against.
|
|
127
|
+
*/
|
|
128
|
+
API_AVAILABLE(macos(10.11), ios(8.0)) NS_SWIFT_SENDABLE
|
|
129
|
+
@protocol MTLFunction <NSObject>
|
|
130
|
+
|
|
131
|
+
/*!
|
|
132
|
+
@property label
|
|
133
|
+
@abstract A string to help identify this object.
|
|
134
|
+
*/
|
|
135
|
+
@property (nullable, copy, atomic) NSString *label API_AVAILABLE(macos(10.12), ios(10.0));
|
|
136
|
+
|
|
137
|
+
/*!
|
|
138
|
+
@property device
|
|
139
|
+
@abstract The device this resource was created against. This resource can only be used with this device.
|
|
140
|
+
*/
|
|
141
|
+
@property (readonly) id <MTLDevice> device;
|
|
142
|
+
|
|
143
|
+
/*!
|
|
144
|
+
@property functionType
|
|
145
|
+
@abstract The overall kind of entry point: compute, vertex, or fragment.
|
|
146
|
+
*/
|
|
147
|
+
@property (readonly) MTLFunctionType functionType;
|
|
148
|
+
|
|
149
|
+
/*!
|
|
150
|
+
@property patchType
|
|
151
|
+
@abstract Returns the patch type. MTLPatchTypeNone if it is not a post tessellation vertex shader.
|
|
152
|
+
*/
|
|
153
|
+
@property (readonly) MTLPatchType patchType API_AVAILABLE(macos(10.12), ios(10.0));
|
|
154
|
+
|
|
155
|
+
/*!
|
|
156
|
+
@property patchControlPointCount
|
|
157
|
+
@abstract Returns the number of patch control points if it was specified in the shader. Returns -1 if it
|
|
158
|
+
was not specified.
|
|
159
|
+
*/
|
|
160
|
+
@property (readonly) NSInteger patchControlPointCount API_AVAILABLE(macos(10.12), ios(10.0));
|
|
161
|
+
|
|
162
|
+
@property (nullable, readonly) NSArray <MTLVertexAttribute *> *vertexAttributes;
|
|
163
|
+
|
|
164
|
+
/*!
|
|
165
|
+
@property stageInputAttributes
|
|
166
|
+
@abstract Returns an array describing the attributes
|
|
167
|
+
*/
|
|
168
|
+
@property (nullable, readonly) NSArray <MTLAttribute *> *stageInputAttributes API_AVAILABLE(macos(10.12), ios(10.0));
|
|
169
|
+
|
|
170
|
+
/*!
|
|
171
|
+
@property name
|
|
172
|
+
@abstract The name of the function in the shading language.
|
|
173
|
+
*/
|
|
174
|
+
@property (readonly) NSString *name;
|
|
175
|
+
|
|
176
|
+
/*!
|
|
177
|
+
@property functionConstantsDictionary
|
|
178
|
+
@abstract A dictionary containing information about all function contents, keyed by the constant names.
|
|
179
|
+
*/
|
|
180
|
+
@property (readonly) NSDictionary<NSString *, MTLFunctionConstant *> *functionConstantsDictionary API_AVAILABLE(macos(10.12), ios(10.0));
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
/*!
|
|
184
|
+
* @method newArgumentEncoderWithBufferIndex:
|
|
185
|
+
* @abstract Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
|
|
186
|
+
*/
|
|
187
|
+
- (id <MTLArgumentEncoder>)newArgumentEncoderWithBufferIndex:(NSUInteger)bufferIndex API_AVAILABLE(macos(10.13), ios(11.0));
|
|
188
|
+
|
|
189
|
+
/*!
|
|
190
|
+
* @method newArgumentEncoderWithBufferIndex:
|
|
191
|
+
* @abstract Creates an argument encoder which will encode arguments matching the layout of the argument buffer at the given bind point index.
|
|
192
|
+
*/
|
|
193
|
+
- (id <MTLArgumentEncoder>)newArgumentEncoderWithBufferIndex:(NSUInteger)bufferIndex
|
|
194
|
+
reflection:(MTLAutoreleasedArgument * __nullable)reflection API_DEPRECATED("Use MTLDevice's newArgumentEncoderWithBufferBinding: instead", macos(10.13, 13.0), ios(11.0, 16.0));
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
/*!
|
|
199
|
+
@property options
|
|
200
|
+
@abstract The options this function was created with.
|
|
201
|
+
*/
|
|
202
|
+
@property (readonly) MTLFunctionOptions options API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
@end
|
|
206
|
+
|
|
207
|
+
typedef NS_ENUM(NSUInteger, MTLLanguageVersion) {
|
|
208
|
+
MTLLanguageVersion1_0 API_DEPRECATED("Use a newer language standard", ios(9.0, 16.0)) API_UNAVAILABLE(macos, macCatalyst) = (1 << 16),
|
|
209
|
+
MTLLanguageVersion1_1 API_AVAILABLE(macos(10.11), ios(9.0)) = (1 << 16) + 1,
|
|
210
|
+
MTLLanguageVersion1_2 API_AVAILABLE(macos(10.12), ios(10.0)) = (1 << 16) + 2,
|
|
211
|
+
MTLLanguageVersion2_0 API_AVAILABLE(macos(10.13), ios(11.0)) = (2 << 16),
|
|
212
|
+
MTLLanguageVersion2_1 API_AVAILABLE(macos(10.14), ios(12.0)) = (2 << 16) + 1,
|
|
213
|
+
MTLLanguageVersion2_2 API_AVAILABLE(macos(10.15), ios(13.0)) = (2 << 16) + 2,
|
|
214
|
+
MTLLanguageVersion2_3 API_AVAILABLE(macos(11.0), ios(14.0)) = (2 << 16) + 3,
|
|
215
|
+
MTLLanguageVersion2_4 API_AVAILABLE(macos(12.0), ios(15.0)) = (2 << 16) + 4,
|
|
216
|
+
MTLLanguageVersion3_0 API_AVAILABLE(macos(13.0), ios(16.0)) =
|
|
217
|
+
(3 << 16) + 0,
|
|
218
|
+
MTLLanguageVersion3_1 API_AVAILABLE(macos(14.0), ios(17.0)) =
|
|
219
|
+
(3 << 16) + 1,
|
|
220
|
+
MTLLanguageVersion3_2 API_AVAILABLE(macos(15.0), ios(18.0)) =
|
|
221
|
+
(3 << 16) + 2,
|
|
222
|
+
MTLLanguageVersion4_0 API_AVAILABLE(macos(26.0), ios(26.0)) =
|
|
223
|
+
(4 << 16) + 0,
|
|
224
|
+
MTLLanguageVersion4_1 API_AVAILABLE(macos(27.0), ios(27.0)) =
|
|
225
|
+
(4 << 16) + 1,
|
|
226
|
+
} API_AVAILABLE(macos(10.11), ios(9.0));
|
|
227
|
+
|
|
228
|
+
typedef NS_ENUM(NSInteger, MTLLibraryType) {
|
|
229
|
+
MTLLibraryTypeExecutable = 0,
|
|
230
|
+
MTLLibraryTypeDynamic = 1,
|
|
231
|
+
} API_AVAILABLE(macos(11.0), ios(14.0));
|
|
232
|
+
|
|
233
|
+
/*!
|
|
234
|
+
@enum MTLLibraryOptimizationLevel
|
|
235
|
+
@abstract Optimization level for the Metal compiler.
|
|
236
|
+
|
|
237
|
+
@constant MTLLibraryOptimizationLevelDefault
|
|
238
|
+
Optimize for program performance.
|
|
239
|
+
|
|
240
|
+
@constant MTLLibraryOptimizationLevelSize
|
|
241
|
+
Like default, with extra optimizations to reduce code size.
|
|
242
|
+
*/
|
|
243
|
+
typedef NS_ENUM(NSInteger, MTLLibraryOptimizationLevel)
|
|
244
|
+
{
|
|
245
|
+
MTLLibraryOptimizationLevelDefault = 0,
|
|
246
|
+
MTLLibraryOptimizationLevelSize = 1,
|
|
247
|
+
} API_AVAILABLE(macos(13.0), ios(16.0));
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
typedef NS_ENUM(NSInteger, MTLCompileSymbolVisibility)
|
|
251
|
+
{
|
|
252
|
+
MTLCompileSymbolVisibilityDefault = 0,
|
|
253
|
+
MTLCompileSymbolVisibilityHidden = 1,
|
|
254
|
+
} API_AVAILABLE(macos(13.3), ios(16.4));
|
|
255
|
+
|
|
256
|
+
/*!
|
|
257
|
+
@enum MTLMathMode
|
|
258
|
+
@abstract An enum to indicate if the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard
|
|
259
|
+
|
|
260
|
+
@constant MTLMathModeSafe
|
|
261
|
+
Disables unsafe floating-point optimizations
|
|
262
|
+
|
|
263
|
+
@constant MTLMathModeRelaxed
|
|
264
|
+
Allows aggressive, unsafe floating-point optimizations but preserves infs and nans
|
|
265
|
+
|
|
266
|
+
@constant MTLMathModeFast
|
|
267
|
+
Allows aggressive, unsafe floating-point optimizations
|
|
268
|
+
*/
|
|
269
|
+
typedef NS_ENUM(NSInteger, MTLMathMode)
|
|
270
|
+
{
|
|
271
|
+
MTLMathModeSafe = 0,
|
|
272
|
+
MTLMathModeRelaxed = 1,
|
|
273
|
+
MTLMathModeFast = 2,
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
/*!
|
|
277
|
+
@enum MTLMathFloatingPointFunctions
|
|
278
|
+
@abstract An enum to indicate the default math functions for single precision floating-point
|
|
279
|
+
|
|
280
|
+
@constant MTLMathFloatingPointFunctionsFast
|
|
281
|
+
Sets the default math functions for single precision floating-point to the corresponding functions in `metal::fast` namespace
|
|
282
|
+
|
|
283
|
+
@constant MTLMathFloatingPointFunctionsPrecise
|
|
284
|
+
Sets the default math functions for single precision floating-point to the corresponding functions in 'metal::precise' namespace
|
|
285
|
+
*/
|
|
286
|
+
typedef NS_ENUM(NSInteger, MTLMathFloatingPointFunctions)
|
|
287
|
+
{
|
|
288
|
+
MTLMathFloatingPointFunctionsFast = 0,
|
|
289
|
+
MTLMathFloatingPointFunctionsPrecise = 1,
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
/*!
|
|
293
|
+
@enum MTLFloatingPointConversionRoundingMode
|
|
294
|
+
@abstract The rounding mode for narrowing floating-point conversions.
|
|
295
|
+
|
|
296
|
+
@constant MTLFloatingPointConversionRoundingModeToNearestEven
|
|
297
|
+
Round-to-nearest-even (default). Standard IEEE 754 rounding mode.
|
|
298
|
+
|
|
299
|
+
@constant MTLFloatingPointConversionRoundingModeTowardZero
|
|
300
|
+
Round-toward-zero.
|
|
301
|
+
*/
|
|
302
|
+
typedef NS_ENUM(NSInteger, MTLFloatingPointConversionRoundingMode)
|
|
303
|
+
{
|
|
304
|
+
MTLFloatingPointConversionRoundingModeToNearestEven = 0,
|
|
305
|
+
MTLFloatingPointConversionRoundingModeTowardZero = 1,
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
|
|
309
|
+
@interface MTLCompileOptions : NSObject <NSCopying>
|
|
310
|
+
|
|
311
|
+
// Pre-processor options
|
|
312
|
+
|
|
313
|
+
/*!
|
|
314
|
+
@property preprocessorNames
|
|
315
|
+
@abstract List of preprocessor macros to consider to when compiling this program. Specified as key value pairs, using a NSDictionary. The keys must be NSString objects and values can be either NSString or NSNumber objects.
|
|
316
|
+
@discussion The default value is nil.
|
|
317
|
+
*/
|
|
318
|
+
@property (nullable, readwrite, copy, nonatomic) NSDictionary <NSString *, NSObject *> *preprocessorMacros;
|
|
319
|
+
|
|
320
|
+
// Math intrinsics options
|
|
321
|
+
|
|
322
|
+
/*!
|
|
323
|
+
@property fastMathEnabled
|
|
324
|
+
@abstract If YES, enables the compiler to perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard. It also enables the high precision variant of math functions for single precision floating-point scalar and vector types. fastMathEnabled defaults to YES.
|
|
325
|
+
*/
|
|
326
|
+
@property (readwrite, nonatomic) BOOL fastMathEnabled API_DEPRECATED("Use mathMode instead", macos(10.11, 15.0), ios(8.0, 18.0));
|
|
327
|
+
|
|
328
|
+
/*!
|
|
329
|
+
@property mathMode
|
|
330
|
+
@abstract Sets the floating-point arithmetic optimizations. Default depends on the language standard version.
|
|
331
|
+
*/
|
|
332
|
+
@property (readwrite, nonatomic) MTLMathMode mathMode API_AVAILABLE(macos(15.0), ios(18.0));
|
|
333
|
+
|
|
334
|
+
/*!
|
|
335
|
+
@property mathFloatingPointFunctions
|
|
336
|
+
@abstract Sets the default math functions for single precision floating-point. Default is `MTLMathFloatingPointFunctionsFast`.
|
|
337
|
+
*/
|
|
338
|
+
@property (nonatomic) MTLMathFloatingPointFunctions mathFloatingPointFunctions API_AVAILABLE(macos(15.0), ios(18.0));
|
|
339
|
+
|
|
340
|
+
/*!
|
|
341
|
+
@property languageVersion
|
|
342
|
+
@abstract set the metal language version used to interpret the source.
|
|
343
|
+
*/
|
|
344
|
+
@property (readwrite, nonatomic) MTLLanguageVersion languageVersion API_AVAILABLE(macos(10.11), ios(9.0));
|
|
345
|
+
|
|
346
|
+
/*!
|
|
347
|
+
@property type
|
|
348
|
+
@abstract Which type the library should be compiled as. The default value is MTLLibraryTypeExecutable.
|
|
349
|
+
@discussion MTLLibraryTypeExecutable is suitable to build a library of "kernel", "vertex" and "fragment" qualified functions.
|
|
350
|
+
MTLLibraryType is suitable when the compilation result will instead be used to instantiate a MTLDynamicLibrary.
|
|
351
|
+
MTLDynamicLibrary contains no qualified functions, but it's unqualified functions and variables can be used as an external dependency for compiling other libraries.
|
|
352
|
+
*/
|
|
353
|
+
@property (readwrite, nonatomic) MTLLibraryType libraryType API_AVAILABLE(macos(11.0), ios(14.0));
|
|
354
|
+
|
|
355
|
+
/*!
|
|
356
|
+
@property installName
|
|
357
|
+
@abstract The install name of this dynamic library.
|
|
358
|
+
@discussion The install name is used when a pipeline state is created that depends, directly or indirectly, on a dynamic library.
|
|
359
|
+
The installName is embedded into any other MTLLibrary that links against the compilation result.
|
|
360
|
+
This property should be set such that the dynamic library can be found in the file system at the time a pipeline state is created.
|
|
361
|
+
Specify one of:
|
|
362
|
+
- an absolute path to a file from which the dynamic library can be loaded, or
|
|
363
|
+
- a path relative to \@executable_path, where \@executable_path is substituted with the directory name from which the MTLLibrary containing the MTLFunction entrypoint used to create the pipeline state is loaded, or
|
|
364
|
+
- a path relative to \@loader_path, where \@loader_path is substituted with the directory name from which the MTLLibrary with the reference to this installName embedded is loaded.
|
|
365
|
+
The first is appropriate for MTLDynamicLibrary written to the file-system using its serializeToURL:error: method on the current device.
|
|
366
|
+
The others are appropriate when the MTLDynamicLibrary is installed as part of a bundle or app, where the absolute path is not known.
|
|
367
|
+
This property is ignored when the type property is not set to MTLLibraryTypeDynamic.
|
|
368
|
+
This propery should not be null if the property type is set to MTLLibraryTypeDynamic: the compilation will fail in that scenario.
|
|
369
|
+
*/
|
|
370
|
+
@property (readwrite, nullable, copy, nonatomic) NSString *installName API_AVAILABLE(macos(11.0), ios(14.0));
|
|
371
|
+
|
|
372
|
+
/*!
|
|
373
|
+
@property libraries
|
|
374
|
+
@abstract A set of MTLDynamicLibrary instances to link against.
|
|
375
|
+
The installName of the provided MTLDynamicLibrary is embedded into the compilation result.
|
|
376
|
+
When a function from the resulting MTLLibrary is used (either as an MTLFunction, or as an to create a pipeline state, the embedded install names are used to automatically load the MTLDynamicLibrary instances.
|
|
377
|
+
This property can be null if no libraries should be automatically loaded, either because the MTLLibrary has no external dependencies, or because you will use preloadedLibraries to specify the libraries to use at pipeline creation time.
|
|
378
|
+
*/
|
|
379
|
+
@property (readwrite, nullable, copy, nonatomic) NSArray<id<MTLDynamicLibrary>> *libraries API_AVAILABLE(macos(11.0), ios(14.0));
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
/*!
|
|
383
|
+
@property preserveInvariance
|
|
384
|
+
@abstract If YES, set the compiler to compile shaders to preserve invariance. The default is false.
|
|
385
|
+
*/
|
|
386
|
+
@property (readwrite, nonatomic) BOOL preserveInvariance API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(14.0));
|
|
387
|
+
|
|
388
|
+
/*!
|
|
389
|
+
@property optimizationLevel
|
|
390
|
+
@abstract Sets the compiler optimization level.
|
|
391
|
+
*/
|
|
392
|
+
@property (readwrite, nonatomic) MTLLibraryOptimizationLevel optimizationLevel API_AVAILABLE(macos(13.0), ios(16.0));
|
|
393
|
+
|
|
394
|
+
/*!
|
|
395
|
+
@property
|
|
396
|
+
@abstract Adds a compiler command to force the default visibility of symbols to be hidden
|
|
397
|
+
*/
|
|
398
|
+
@property (readwrite, nonatomic) MTLCompileSymbolVisibility compileSymbolVisibility API_AVAILABLE(macos(13.3), ios(16.4));
|
|
399
|
+
|
|
400
|
+
/*!
|
|
401
|
+
@property allowReferencingUndefinedSymbols
|
|
402
|
+
@abstract Adds a compiler command to allow the reference of undefined symbols
|
|
403
|
+
*/
|
|
404
|
+
@property (readwrite, nonatomic) BOOL allowReferencingUndefinedSymbols API_AVAILABLE(macos(13.3), ios(16.4));
|
|
405
|
+
|
|
406
|
+
/*!
|
|
407
|
+
@property maxTotalThreadsPerThreadgroup
|
|
408
|
+
@abstract Adds a compiler command to specify the total threads per threadgroup
|
|
409
|
+
*/
|
|
410
|
+
@property (readwrite, nonatomic) NSUInteger maxTotalThreadsPerThreadgroup API_AVAILABLE(macos(13.3), ios(16.4));
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
/*!
|
|
414
|
+
@property enableLogging
|
|
415
|
+
@abstract If YES, set the compiler to enable any logging in the shader. The default is false.
|
|
416
|
+
*/
|
|
417
|
+
@property (readwrite, nonatomic) BOOL enableLogging API_AVAILABLE(macos(15.0), ios(18.0));
|
|
418
|
+
|
|
419
|
+
/*!
|
|
420
|
+
@property floatingPointConversionRoundingMode
|
|
421
|
+
@abstract Sets the rounding mode for narrowing floating-point conversions. Default is MTLFloatingPointConversionRoundingModeToNearestEven.
|
|
422
|
+
*/
|
|
423
|
+
@property (readwrite, nonatomic) MTLFloatingPointConversionRoundingMode floatingPointConversionRoundingMode API_AVAILABLE(macos(27.0), ios(27.0));
|
|
424
|
+
@end
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
/*!
|
|
428
|
+
@constant MTLLibraryErrorDomain
|
|
429
|
+
@abstract NSErrors raised when creating a library.
|
|
430
|
+
*/
|
|
431
|
+
API_AVAILABLE(macos(10.11), ios(8.0))
|
|
432
|
+
MTL_EXTERN NSErrorDomain const MTLLibraryErrorDomain;
|
|
433
|
+
|
|
434
|
+
/*!
|
|
435
|
+
@enum MTLLibraryError
|
|
436
|
+
@abstract NSErrors raised when creating a library.
|
|
437
|
+
*/
|
|
438
|
+
typedef NS_ENUM(NSUInteger, MTLLibraryError) {
|
|
439
|
+
MTLLibraryErrorUnsupported = 1,
|
|
440
|
+
MTLLibraryErrorInternal = 2,
|
|
441
|
+
MTLLibraryErrorCompileFailure = 3,
|
|
442
|
+
MTLLibraryErrorCompileWarning = 4,
|
|
443
|
+
MTLLibraryErrorFunctionNotFound API_AVAILABLE(macos(10.12), ios(10.0)) = 5,
|
|
444
|
+
MTLLibraryErrorFileNotFound API_AVAILABLE(macos(10.12), ios(10.0)) = 6,
|
|
445
|
+
} API_AVAILABLE(macos(10.11), ios(8.0));
|
|
446
|
+
|
|
447
|
+
API_AVAILABLE(macos(10.11), ios(8.0)) NS_SWIFT_SENDABLE
|
|
448
|
+
@protocol MTLLibrary <NSObject>
|
|
449
|
+
|
|
450
|
+
/*!
|
|
451
|
+
@property label
|
|
452
|
+
@abstract A string to help identify this object.
|
|
453
|
+
*/
|
|
454
|
+
@property (nullable, copy, atomic) NSString *label;
|
|
455
|
+
|
|
456
|
+
/*!
|
|
457
|
+
@property device
|
|
458
|
+
@abstract The device this resource was created against. This resource can only be used with this device.
|
|
459
|
+
*/
|
|
460
|
+
@property (readonly) id <MTLDevice> device;
|
|
461
|
+
|
|
462
|
+
/*!
|
|
463
|
+
@method newFunctionWithName
|
|
464
|
+
@abstract Returns a pointer to a function object, return nil if the function is not found in the library.
|
|
465
|
+
*/
|
|
466
|
+
- (nullable id <MTLFunction>) newFunctionWithName:(NSString *)functionName;
|
|
467
|
+
|
|
468
|
+
/*!
|
|
469
|
+
@method newFunctionWithName:constantValues:error:
|
|
470
|
+
@abstract Returns a pointer to a function object obtained by applying the constant values to the named function.
|
|
471
|
+
@discussion This method will call the compiler. Use newFunctionWithName:constantValues:completionHandler: to
|
|
472
|
+
avoid waiting on the compiler.
|
|
473
|
+
*/
|
|
474
|
+
- (nullable id <MTLFunction>) newFunctionWithName:(NSString *)name constantValues:(MTLFunctionConstantValues *)constantValues
|
|
475
|
+
error:(__autoreleasing NSError **)error API_AVAILABLE(macos(10.12), ios(10.0));
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
/*!
|
|
479
|
+
@method newFunctionWithName:constantValues:completionHandler:
|
|
480
|
+
@abstract Returns a pointer to a function object obtained by applying the constant values to the named function.
|
|
481
|
+
@discussion This method is asynchronous since it is will call the compiler.
|
|
482
|
+
*/
|
|
483
|
+
- (void) newFunctionWithName:(NSString *)name constantValues:(MTLFunctionConstantValues *)constantValues
|
|
484
|
+
completionHandler:(void (^)(id<MTLFunction> __nullable function, NSError* __nullable error))completionHandler API_AVAILABLE(macos(10.12), ios(10.0));
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
/*!
|
|
490
|
+
@method newFunctionWithDescriptor:completionHandler:
|
|
491
|
+
@abstract Create a new MTLFunction object asynchronously.
|
|
492
|
+
*/
|
|
493
|
+
- (void)newFunctionWithDescriptor:(nonnull MTLFunctionDescriptor *)descriptor
|
|
494
|
+
completionHandler:(void (^)(id<MTLFunction> __nullable function, NSError* __nullable error))completionHandler API_AVAILABLE(macos(11.0), ios(14.0));
|
|
495
|
+
|
|
496
|
+
/*!
|
|
497
|
+
@method newFunctionWithDescriptor:error:
|
|
498
|
+
@abstract Create a new MTLFunction object synchronously.
|
|
499
|
+
*/
|
|
500
|
+
- (nullable id <MTLFunction>)newFunctionWithDescriptor:(nonnull MTLFunctionDescriptor *)descriptor
|
|
501
|
+
error:(__autoreleasing NSError **)error API_AVAILABLE(macos(11.0), ios(14.0));
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
/*!
|
|
506
|
+
@method newIntersectionFunctionWithDescriptor:completionHandler:
|
|
507
|
+
@abstract Create a new MTLFunction object asynchronously.
|
|
508
|
+
*/
|
|
509
|
+
- (void)newIntersectionFunctionWithDescriptor:(nonnull MTLIntersectionFunctionDescriptor *)descriptor
|
|
510
|
+
completionHandler:(void (^)(id<MTLFunction> __nullable function, NSError* __nullable error))completionHandler
|
|
511
|
+
API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
512
|
+
|
|
513
|
+
/*!
|
|
514
|
+
@method newIntersectionFunctionWithDescriptor:error:
|
|
515
|
+
@abstract Create a new MTLFunction object synchronously.
|
|
516
|
+
*/
|
|
517
|
+
- (nullable id <MTLFunction>)newIntersectionFunctionWithDescriptor:(nonnull MTLIntersectionFunctionDescriptor *)descriptor
|
|
518
|
+
error:(__autoreleasing NSError **)error
|
|
519
|
+
API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
/*!
|
|
524
|
+
@property functionNames
|
|
525
|
+
@abstract The array contains NSString objects, with the name of each function in library.
|
|
526
|
+
*/
|
|
527
|
+
@property (readonly) NSArray <NSString *> *functionNames;
|
|
528
|
+
|
|
529
|
+
/*!
|
|
530
|
+
@property type
|
|
531
|
+
@abstract The library type provided when this MTLLibrary was created.
|
|
532
|
+
Libraries with MTLLibraryTypeExecutable can be used to obtain MTLFunction from.
|
|
533
|
+
Libraries with MTLLibraryTypeDynamic can be used to resolve external references in other MTLLibrary from.
|
|
534
|
+
@see MTLCompileOptions
|
|
535
|
+
*/
|
|
536
|
+
@property (readonly) MTLLibraryType type API_AVAILABLE(macos(11.0), ios(14.0));
|
|
537
|
+
|
|
538
|
+
/*!
|
|
539
|
+
@property installName
|
|
540
|
+
@abstract The installName provided when this MTLLibrary was created.
|
|
541
|
+
@discussion Always nil if the type of the library is not MTLLibraryTypeDynamic.
|
|
542
|
+
@see MTLCompileOptions
|
|
543
|
+
*/
|
|
544
|
+
@property (readonly, nullable) NSString* installName API_AVAILABLE(macos(11.0), ios(14.0));
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
@end
|
|
548
|
+
|
|
549
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLLinkedFunctions.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Metal/MTLDefines.h>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@protocol MTLFunction;
|
|
15
|
+
|
|
16
|
+
/*!
|
|
17
|
+
@class MTLLinkedFunctions
|
|
18
|
+
@abstract A class to set functions to be linked.
|
|
19
|
+
@discussion All functions set on this object must have unique names.
|
|
20
|
+
*/
|
|
21
|
+
MTL_EXPORT API_AVAILABLE(macos(11.0), ios(14.0))
|
|
22
|
+
@interface MTLLinkedFunctions : NSObject <NSCopying>
|
|
23
|
+
|
|
24
|
+
/*!
|
|
25
|
+
@method linkedFunctions
|
|
26
|
+
@abstract Create an autoreleased MTLLinkedFunctions object.
|
|
27
|
+
*/
|
|
28
|
+
+ (nonnull MTLLinkedFunctions *)linkedFunctions;
|
|
29
|
+
|
|
30
|
+
/*!
|
|
31
|
+
* @property functions
|
|
32
|
+
* @abstract The array of functions to be AIR linked.
|
|
33
|
+
*/
|
|
34
|
+
@property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *functions;
|
|
35
|
+
|
|
36
|
+
/*!
|
|
37
|
+
* @property binaryFunctions
|
|
38
|
+
* @abstract The array of functions compiled to binary to be linked.
|
|
39
|
+
*/
|
|
40
|
+
@property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *binaryFunctions API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
41
|
+
|
|
42
|
+
/*!
|
|
43
|
+
* @property groups
|
|
44
|
+
* @abstract Groups of functions, grouped to match callsites in the shader code.
|
|
45
|
+
*/
|
|
46
|
+
@property (readwrite, nonatomic, copy, nullable) NSDictionary<NSString*, NSArray<id<MTLFunction>>*> *groups;
|
|
47
|
+
|
|
48
|
+
/*!
|
|
49
|
+
@property privateFunctions
|
|
50
|
+
@abstract The array of functions to be AIR linked.
|
|
51
|
+
@discussion These functions are not exported by the pipeline state as MTLFunctionHandle objects.
|
|
52
|
+
Function pointer support is not required to link private functions.
|
|
53
|
+
*/
|
|
54
|
+
@property (readwrite, nonatomic, copy, nullable) NSArray<id<MTLFunction>> *privateFunctions API_AVAILABLE(macos(12.0), ios(15.0));
|
|
55
|
+
|
|
56
|
+
@end
|
|
57
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLLogState.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2024 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Metal/MTLDefines.h>
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
/*!
|
|
14
|
+
* @enum MTLLogLevel
|
|
15
|
+
*
|
|
16
|
+
* @abstract
|
|
17
|
+
* The level of the log entry.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
typedef NS_ENUM(NSInteger, MTLLogLevel)
|
|
21
|
+
{
|
|
22
|
+
MTLLogLevelUndefined,
|
|
23
|
+
MTLLogLevelDebug, // A log level that captures diagnostic information.
|
|
24
|
+
MTLLogLevelInfo, // The log level that captures additional information.
|
|
25
|
+
MTLLogLevelNotice, // The log level that captures notifications.
|
|
26
|
+
MTLLogLevelError, // The log level that captures errors.
|
|
27
|
+
MTLLogLevelFault, // The log level that captures fault information.
|
|
28
|
+
}
|
|
29
|
+
API_AVAILABLE(macos(15.0), ios(18.0));
|
|
30
|
+
|
|
31
|
+
API_AVAILABLE(macos(15.0), ios(18.0)) NS_SWIFT_SENDABLE
|
|
32
|
+
@protocol MTLLogState <NSObject>
|
|
33
|
+
/*!
|
|
34
|
+
@method addLogHandler
|
|
35
|
+
@abstract Add a function block to handle log message output.
|
|
36
|
+
In the absence of any handlers, log messages go through the default handler.
|
|
37
|
+
*/
|
|
38
|
+
- (void)addLogHandler:(void(^ NS_SWIFT_SENDABLE)(NSString* __nullable subSystem, NSString* __nullable category, MTLLogLevel logLevel, NSString* message))block;
|
|
39
|
+
@end
|
|
40
|
+
|
|
41
|
+
MTL_EXPORT API_AVAILABLE(macos(15.0), ios(18.0))
|
|
42
|
+
@interface MTLLogStateDescriptor : NSObject <NSCopying>
|
|
43
|
+
/*!
|
|
44
|
+
@abstract level indicates the minimum level of the logs that will be printed.
|
|
45
|
+
@discussion All the logs with level less than given level will be skipped on the GPU Side.
|
|
46
|
+
*/
|
|
47
|
+
@property (assign, readwrite) MTLLogLevel level;
|
|
48
|
+
|
|
49
|
+
/*!
|
|
50
|
+
* @abstract bufferSize indicates the size of the buffer where GPU will store the logging content from shaders. Minimum value is 1KB
|
|
51
|
+
*/
|
|
52
|
+
@property (assign, readwrite) NSInteger bufferSize;
|
|
53
|
+
@end
|
|
54
|
+
|
|
55
|
+
API_AVAILABLE(macos(15.0), ios(18.0))
|
|
56
|
+
MTL_EXTERN NSErrorDomain const MTLLogStateErrorDomain;
|
|
57
|
+
/*!
|
|
58
|
+
@enum
|
|
59
|
+
@abstract NSErrors raised when creating a logstate.
|
|
60
|
+
*/
|
|
61
|
+
typedef NS_ENUM(NSUInteger, MTLLogStateError) {
|
|
62
|
+
MTLLogStateErrorInvalidSize = 1,
|
|
63
|
+
MTLLogStateErrorInvalid = 2
|
|
64
|
+
} API_AVAILABLE(macos(15.0), ios(18.0));
|
|
65
|
+
NS_ASSUME_NONNULL_END
|