peachsim 0.1.1674 → 0.1.1692
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/control.ts +13 -1
- package/cli/commands/coverage-swift.ts +150 -27
- package/cli/commands/coverage.ts +219 -20
- package/cli/commands/detect.ts +10 -6
- package/cli/commands/inspect/actions.ts +1 -0
- package/cli/commands/inspect/core.ts +2 -0
- package/cli/commands/inspect/wait-ready.ts +7 -0
- package/cli/commands/screenshot.ts +12 -0
- package/cli/outbound-endpoints.ts +12 -0
- package/detox/index.ts +11 -1
- package/detox/jest-environment.cjs +14 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +4833 -2432
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +6 -4
- package/dist-lib/detox/jest-environment.cjs +14 -0
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3785 -1737
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +4253 -2205
- package/dist-lib/host/fetch-proxy-handler.cjs +20 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2065 -796
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +6325 -4287
- package/dist-lib/native-app-identity-project.cjs +192 -55
- package/dist-lib/native-app-identity-project.mjs +235 -86
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +27 -23
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +156 -87
- package/dist-lib/react-native-host-modules.cjs +1 -1
- 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 +1 -1
- package/dist-lib/sdk.cjs +3 -2
- package/dist-lib/sdk.mjs +3 -2
- package/dist-lib/skills.cjs +5036 -2833
- package/dist-lib/swift-compile.cjs +2937 -437
- package/dist-lib/swift-compile.mjs +2932 -435
- package/dist-lib/swift-package.cjs +137 -49
- package/dist-lib/swift-package.mjs +132 -49
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +26 -11
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6005 -1725
- package/dist-lib/vite.cjs +1911 -776
- package/dist-lib/worklet-executable.cjs +7 -4
- package/dist-lib/worklet-executable.mjs +7 -4
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +24 -2
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +8 -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-kit/src/capabilities.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +60 -2
- 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 +117 -2
- 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/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -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/UIKit.framework/Headers/UIKit.h +10 -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/arm/param.h +151 -0
- package/sdk/ios/usr/include/complex.h +167 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +8 -0
- package/sdk/ios/usr/include/dlfcn.h +1 -2
- package/sdk/ios/usr/include/mach/mach_types.h +1 -0
- package/sdk/ios/usr/include/machine/param.h +42 -0
- package/sdk/ios/usr/include/math.h +835 -2
- package/sdk/ios/usr/include/net/if.h +1 -2
- package/sdk/ios/usr/include/peach/pthread.h +4 -4
- package/sdk/ios/usr/include/pthread/qos.h +304 -0
- package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
- package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
- package/sdk/ios/usr/include/sys/cdefs.h +3 -1
- package/sdk/ios/usr/include/sys/param.h +235 -0
- package/sdk/ios/usr/include/sys/proc.h +1 -0
- package/sdk/ios/usr/include/sys/qos.h +151 -12
- package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
- package/sdk/ios/wasm/include/fcntl.h +11 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/include/machine/_types.h +153 -0
- package/sdk/ios/wasm/include/machine/endian.h +2 -0
- package/sdk/ios/wasm/include/machine/limits.h +2 -0
- package/sdk/ios/wasm/include/machine/types.h +30 -0
- package/sdk/ios/wasm/include/poll.h +8 -0
- package/sdk/ios/wasm/include/pthread.h +50 -0
- package/sdk/ios/wasm/include/signal.h +72 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +10 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
- package/sdk/ios/wasm/include/sys/mman.h +122 -0
- package/sdk/ios/wasm/include/sys/select.h +37 -0
- package/sdk/ios/wasm/include/sys/signal.h +259 -0
- package/sdk/ios/wasm/include/sys/socket.h +8 -0
- package/sdk/ios/wasm/include/sys/types.h +14 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
- package/sdk/ios/wasm/include/sys/uio.h +11 -0
- package/sdk/ios/wasm/include/sys/wait.h +89 -0
- package/sdk/ios/wasm/include/time.h +8 -0
- package/sdk/ios/wasm/include/unistd.h +17 -0
- package/src/bridge-contract.ts +2 -0
- package/src/chromium-admission.ts +10 -5
- package/src/device-catalog.ts +4 -4
- package/src/generated/swift-c-predefines.json +1988 -0
- package/src/host/fetch-proxy-handler.ts +20 -0
- package/src/metro-plugin.ts +5 -2
- package/src/nitro-adapter.lock.json +6 -6
- package/src/nitro-bundle.ts +1 -0
- package/src/nitro-compile.ts +67 -2
- package/src/nitroContract.ts +18 -2
- package/src/numbered-lock.ts +72 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
- package/src/react-native-coverage/capability-source-references.ts +50 -13
- package/src/react-native-coverage/native-source-credit.ts +126 -0
- package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
- package/src/react-native-coverage/native-surface.ts +49 -0
- package/src/react-native-coverage/verified-reach.ts +22 -2
- package/src/runtime-assets.ts +17 -0
- package/src/swift-compile.ts +530 -97
- package/src/swift-coverage/indexing.ts +17 -1
- package/src/swift-coverage/package.ts +3 -1
- package/src/swift-coverage/sdk.ts +71 -0
- package/src/swift-coverage/source.ts +74 -2
- package/src/swift-coverage/types.ts +6 -0
- package/src/swift-coverage/xcode-assets.ts +62 -2
- package/src/swift-coverage/xcode-packages.ts +11 -6
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-host.ts +457 -62
- package/src/swift-objc-compile.ts +26 -26
- package/src/swift-objc-metadata.ts +2 -8
- package/src/swift-objc-platform.ts +53 -0
- package/src/swift-objc-standin.ts +66 -12
- package/src/swift-package-manifest.ts +196 -28
- package/src/swift-package.ts +186 -60
- package/src/swift-packages.ts +298 -88
- package/src/swift-source-file.ts +10 -15
- package/src/swift-source-pods.ts +288 -0
- package/src/swift-standins.ts +87 -13
- package/src/swift-submit.ts +5 -0
- package/src/swift-toolchain.ts +32 -10
- package/src/swiftContract.ts +160 -75
- package/src/target-matcher.ts +15 -2
- package/src/vite-plugin-one.ts +5 -4
- package/src/worker-system-chunks.ts +7 -1
- package/src/worklet-executable.ts +7 -3
- package/src/xcode-json-project.ts +14 -2
- package/src/xcode-project.ts +193 -69
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLArgument.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLTexture.h>
|
|
11
|
+
#import <Metal/MTLCommandEncoder.h>
|
|
12
|
+
#import <Metal/MTLDataType.h>
|
|
13
|
+
#import <Metal/MTLTensor.h>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
typedef NS_ENUM(NSUInteger, MTLIndexType) {
|
|
19
|
+
MTLIndexTypeUInt16 = 0,
|
|
20
|
+
MTLIndexTypeUInt32 = 1,
|
|
21
|
+
} API_AVAILABLE(macos(10.11), ios(8.0));
|
|
22
|
+
|
|
23
|
+
@class MTLArgument;
|
|
24
|
+
|
|
25
|
+
/*!
|
|
26
|
+
@enum MTLBindingsType
|
|
27
|
+
@abstract The type of a resource binding.
|
|
28
|
+
|
|
29
|
+
@constant MTLBindingTypeBuffer
|
|
30
|
+
This binding represents a buffer.
|
|
31
|
+
|
|
32
|
+
@constant MTLBindingTypeThreadgroupMemory
|
|
33
|
+
This binding represents threadgroup memory.
|
|
34
|
+
|
|
35
|
+
@constant MTLBindingTypeTexture
|
|
36
|
+
This binding represents a texture.
|
|
37
|
+
|
|
38
|
+
@constant MTLBindingTypeSampler
|
|
39
|
+
This binding represents a sampler.
|
|
40
|
+
|
|
41
|
+
@constant MTLBindingTypeImageblockData
|
|
42
|
+
This binding represents an image block data.
|
|
43
|
+
|
|
44
|
+
@constant MTLBindingTypeImageblock
|
|
45
|
+
This binding represents an image block.
|
|
46
|
+
|
|
47
|
+
@constant MTLBindingTypeVisibleFunctionTable
|
|
48
|
+
This binding represents a visible function table object.
|
|
49
|
+
|
|
50
|
+
@constant MTLBindingTypePrimitiveAccelerationStructure
|
|
51
|
+
This binding represents a primitive acceleration structure object.
|
|
52
|
+
|
|
53
|
+
@constant MTLBindingTypeInstanceAccelerationStructure
|
|
54
|
+
This binding represents an instance acceleration structure object.
|
|
55
|
+
|
|
56
|
+
@constant MTLBinidngTypeIntersectionFunctionTable
|
|
57
|
+
This binding represents an intersection function table object.
|
|
58
|
+
|
|
59
|
+
@constant MTLBindingTypeObjectPayload
|
|
60
|
+
This binding represents an object payload.
|
|
61
|
+
|
|
62
|
+
@constant MTLBindingTypeTensor
|
|
63
|
+
This binding represents a tensor object.
|
|
64
|
+
*/
|
|
65
|
+
typedef NS_ENUM(NSInteger, MTLBindingType) {
|
|
66
|
+
MTLBindingTypeBuffer = 0,
|
|
67
|
+
MTLBindingTypeThreadgroupMemory = 1,
|
|
68
|
+
MTLBindingTypeTexture = 2,
|
|
69
|
+
MTLBindingTypeSampler = 3,
|
|
70
|
+
MTLBindingTypeImageblockData = 16,
|
|
71
|
+
MTLBindingTypeImageblock = 17,
|
|
72
|
+
MTLBindingTypeVisibleFunctionTable = 24,
|
|
73
|
+
MTLBindingTypePrimitiveAccelerationStructure = 25,
|
|
74
|
+
MTLBindingTypeInstanceAccelerationStructure = 26,
|
|
75
|
+
MTLBindingTypeIntersectionFunctionTable = 27,
|
|
76
|
+
MTLBindingTypeObjectPayload = 34,
|
|
77
|
+
} API_AVAILABLE(macos(11.0), ios(14.0));
|
|
78
|
+
|
|
79
|
+
/*!
|
|
80
|
+
@enum MTLArgumentType
|
|
81
|
+
@abstract The type for an input to a MTLRenderPipelineState or a MTLComputePipelineState
|
|
82
|
+
|
|
83
|
+
@constant MTLArgumentTypeBuffer
|
|
84
|
+
This input is a MTLBuffer
|
|
85
|
+
|
|
86
|
+
@constant MTLArgumentTypeThreadgroupMemory
|
|
87
|
+
This input is a pointer to the threadgroup memory.
|
|
88
|
+
|
|
89
|
+
@constant MTLArgumentTypeTexture
|
|
90
|
+
This input is a MTLTexture.
|
|
91
|
+
|
|
92
|
+
@constant MTLArgumentTypeSampler
|
|
93
|
+
This input is a sampler.
|
|
94
|
+
*/
|
|
95
|
+
typedef NS_ENUM(NSUInteger, MTLArgumentType) {
|
|
96
|
+
|
|
97
|
+
MTLArgumentTypeBuffer = 0,
|
|
98
|
+
MTLArgumentTypeThreadgroupMemory= 1,
|
|
99
|
+
MTLArgumentTypeTexture = 2,
|
|
100
|
+
MTLArgumentTypeSampler = 3,
|
|
101
|
+
|
|
102
|
+
MTLArgumentTypeImageblockData API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 16,
|
|
103
|
+
MTLArgumentTypeImageblock API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 17,
|
|
104
|
+
MTLArgumentTypeVisibleFunctionTable API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 24,
|
|
105
|
+
MTLArgumentTypePrimitiveAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 25,
|
|
106
|
+
MTLArgumentTypeInstanceAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 26,
|
|
107
|
+
MTLArgumentTypeIntersectionFunctionTable API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 27,
|
|
108
|
+
} API_DEPRECATED_WITH_REPLACEMENT("MTLBindingType", macos(10.11, 13.0), ios(8.0, 16.0));
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
typedef NS_ENUM(NSUInteger, MTLBindingAccess) {
|
|
112
|
+
MTLBindingAccessReadOnly = 0,
|
|
113
|
+
MTLBindingAccessReadWrite = 1,
|
|
114
|
+
MTLBindingAccessWriteOnly = 2,
|
|
115
|
+
MTLArgumentAccessReadOnly API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccessReadOnly", macos(10.13, 14.0), ios(8.0, 17.0)) = MTLBindingAccessReadOnly,
|
|
116
|
+
MTLArgumentAccessReadWrite API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccessReadWrite", macos(10.13, 14.0), ios(8.0, 17.0)) = MTLBindingAccessReadWrite,
|
|
117
|
+
MTLArgumentAccessWriteOnly API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccessWriteOnly", macos(10.13, 14.0), ios(8.0, 17.0)) = MTLBindingAccessWriteOnly,
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
typedef MTLBindingAccess MTLArgumentAccess API_DEPRECATED_WITH_REPLACEMENT("MTLBindingAccess", macos(10.11, 14.0), ios(8.0, 17.0));
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
@class MTLStructType;
|
|
124
|
+
@class MTLArrayType;
|
|
125
|
+
@class MTLTextureReferenceType;
|
|
126
|
+
@class MTLPointerType;
|
|
127
|
+
|
|
128
|
+
MTL_EXPORT API_AVAILABLE(macos(10.13), ios(11.0))
|
|
129
|
+
@interface MTLType : NSObject
|
|
130
|
+
@property (readonly) MTLDataType dataType;
|
|
131
|
+
@end
|
|
132
|
+
|
|
133
|
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
|
|
134
|
+
@interface MTLStructMember : NSObject
|
|
135
|
+
|
|
136
|
+
@property (readonly) NSString *name;
|
|
137
|
+
@property (readonly) NSUInteger offset;
|
|
138
|
+
@property (readonly) MTLDataType dataType;
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
- (nullable MTLStructType *)structType;
|
|
142
|
+
- (nullable MTLArrayType *)arrayType;
|
|
143
|
+
|
|
144
|
+
- (nullable MTLTextureReferenceType *)textureReferenceType API_AVAILABLE(macos(10.13), ios(11.0));
|
|
145
|
+
- (nullable MTLPointerType *)pointerType API_AVAILABLE(macos(10.13), ios(11.0));
|
|
146
|
+
|
|
147
|
+
@property (readonly) NSUInteger argumentIndex API_AVAILABLE(macos(10.13), ios(11.0));
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
@end
|
|
151
|
+
|
|
152
|
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
|
|
153
|
+
@interface MTLStructType : MTLType
|
|
154
|
+
|
|
155
|
+
@property (readonly) NSArray <MTLStructMember *> *members;
|
|
156
|
+
|
|
157
|
+
- (nullable MTLStructMember *)memberByName:(NSString *)name;
|
|
158
|
+
|
|
159
|
+
@end
|
|
160
|
+
|
|
161
|
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
|
|
162
|
+
@interface MTLArrayType : MTLType
|
|
163
|
+
|
|
164
|
+
@property (readonly) MTLDataType elementType;
|
|
165
|
+
|
|
166
|
+
@property (readonly) NSUInteger arrayLength;
|
|
167
|
+
@property (readonly) NSUInteger stride;
|
|
168
|
+
@property (readonly) NSUInteger argumentIndexStride API_AVAILABLE(macos(10.13), ios(11.0));
|
|
169
|
+
- (nullable MTLStructType *)elementStructType;
|
|
170
|
+
- (nullable MTLArrayType *)elementArrayType;
|
|
171
|
+
- (nullable MTLTextureReferenceType *)elementTextureReferenceType API_AVAILABLE(macos(10.13), ios(11.0));
|
|
172
|
+
- (nullable MTLPointerType *)elementPointerType API_AVAILABLE(macos(10.13), ios(11.0));
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@end
|
|
176
|
+
|
|
177
|
+
MTL_EXPORT API_AVAILABLE(macos(10.13), ios(11.0))
|
|
178
|
+
@interface MTLPointerType : MTLType
|
|
179
|
+
|
|
180
|
+
@property (readonly) MTLDataType elementType; // MTLDataTypeFloat, MTLDataTypeFloat4, MTLDataTypeStruct, ...
|
|
181
|
+
@property (readonly) MTLBindingAccess access;
|
|
182
|
+
@property (readonly) NSUInteger alignment; // min alignment for the element data
|
|
183
|
+
@property (readonly) NSUInteger dataSize; // sizeof(T) for T *argName
|
|
184
|
+
|
|
185
|
+
@property (readonly) BOOL elementIsArgumentBuffer API_AVAILABLE(macos(10.13), ios(11.0));
|
|
186
|
+
|
|
187
|
+
- (nullable MTLStructType *)elementStructType API_AVAILABLE(macos(10.13), ios(11.0));
|
|
188
|
+
- (nullable MTLArrayType *)elementArrayType API_AVAILABLE(macos(10.13), ios(11.0));
|
|
189
|
+
|
|
190
|
+
@end
|
|
191
|
+
|
|
192
|
+
MTL_EXPORT API_AVAILABLE(macos(10.13), ios(11.0))
|
|
193
|
+
@interface MTLTextureReferenceType : MTLType
|
|
194
|
+
|
|
195
|
+
@property (readonly) MTLDataType textureDataType; // half, float, int, or uint.
|
|
196
|
+
@property (readonly) MTLTextureType textureType; // texture1D, texture2D...
|
|
197
|
+
@property (readonly) MTLBindingAccess access; // read, write, read-write
|
|
198
|
+
@property (readonly) BOOL isDepthTexture; // true for depth textures
|
|
199
|
+
|
|
200
|
+
@end
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/*!
|
|
205
|
+
MTLArgument
|
|
206
|
+
*/
|
|
207
|
+
MTL_EXPORT NS_SWIFT_SENDABLE
|
|
208
|
+
API_DEPRECATED_WITH_REPLACEMENT("MTLBinding", macos(10.11, 13.0), ios(8.0, 16.0))
|
|
209
|
+
@interface MTLArgument : NSObject
|
|
210
|
+
|
|
211
|
+
@property (readonly) NSString *name;
|
|
212
|
+
@property (readonly) MTLArgumentType type;
|
|
213
|
+
@property (readonly) MTLBindingAccess access;
|
|
214
|
+
@property (readonly) NSUInteger index;
|
|
215
|
+
|
|
216
|
+
@property (readonly, getter=isActive) BOOL active;
|
|
217
|
+
|
|
218
|
+
// for buffer arguments
|
|
219
|
+
@property (readonly) NSUInteger bufferAlignment; // min alignment of starting offset in the buffer
|
|
220
|
+
@property (readonly) NSUInteger bufferDataSize; // sizeof(T) for T *argName
|
|
221
|
+
@property (readonly) MTLDataType bufferDataType; // MTLDataTypeFloat, MTLDataTypeFloat4, MTLDataTypeStruct, ...
|
|
222
|
+
@property (readonly, nullable) MTLStructType *bufferStructType;
|
|
223
|
+
@property (readonly, nullable) MTLPointerType *bufferPointerType API_AVAILABLE(macos(10.13), ios(11.0));
|
|
224
|
+
|
|
225
|
+
// for threadgroup memory arguments
|
|
226
|
+
@property (readonly) NSUInteger threadgroupMemoryAlignment;
|
|
227
|
+
@property (readonly) NSUInteger threadgroupMemoryDataSize; // sizeof(T) for T *argName
|
|
228
|
+
|
|
229
|
+
// for texture arguments
|
|
230
|
+
@property (readonly) MTLTextureType textureType; // texture1D, texture2D...
|
|
231
|
+
@property (readonly) MTLDataType textureDataType; // half, float, int, or uint.
|
|
232
|
+
@property (readonly) BOOL isDepthTexture API_AVAILABLE(macos(10.12), ios(10.0)); // true for depth textures
|
|
233
|
+
@property (readonly) NSUInteger arrayLength API_AVAILABLE(macos(10.13), ios(10.0));
|
|
234
|
+
|
|
235
|
+
@end
|
|
236
|
+
|
|
237
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0)) NS_SWIFT_SENDABLE
|
|
238
|
+
@protocol MTLBinding<NSObject>
|
|
239
|
+
@property (readonly) NSString *name;
|
|
240
|
+
@property (readonly) MTLBindingType type;
|
|
241
|
+
@property (readonly) MTLBindingAccess access;
|
|
242
|
+
@property (readonly) NSUInteger index;
|
|
243
|
+
|
|
244
|
+
@property (readonly, getter=isUsed) BOOL used;
|
|
245
|
+
@property (readonly, getter=isArgument) BOOL argument;
|
|
246
|
+
@end
|
|
247
|
+
|
|
248
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
|
|
249
|
+
@protocol MTLBufferBinding<MTLBinding>
|
|
250
|
+
@property (readonly) NSUInteger bufferAlignment; // min alignment of starting offset in the buffer
|
|
251
|
+
@property (readonly) NSUInteger bufferDataSize; // sizeof(T) for T *argName
|
|
252
|
+
@property (readonly) MTLDataType bufferDataType; // MTLDataTypeFloat, MTLDataTypeFloat4, MTLDataTypeStruct, ...
|
|
253
|
+
@property (readonly, nullable) MTLStructType *bufferStructType;
|
|
254
|
+
@property (readonly, nullable) MTLPointerType *bufferPointerType;
|
|
255
|
+
@end
|
|
256
|
+
|
|
257
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
|
|
258
|
+
@protocol MTLThreadgroupBinding<MTLBinding>
|
|
259
|
+
@property (readonly) NSUInteger threadgroupMemoryAlignment;
|
|
260
|
+
@property (readonly) NSUInteger threadgroupMemoryDataSize; // sizeof(T) for T *argName
|
|
261
|
+
@end
|
|
262
|
+
|
|
263
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
|
|
264
|
+
@protocol MTLTextureBinding<MTLBinding>
|
|
265
|
+
@property (readonly) MTLTextureType textureType; // texture1D, texture2D...
|
|
266
|
+
@property (readonly) MTLDataType textureDataType; // half, float, int, or uint.
|
|
267
|
+
@property (readonly, getter=isDepthTexture) BOOL depthTexture; // true for depth textures
|
|
268
|
+
@property (readonly) NSUInteger arrayLength;
|
|
269
|
+
@end
|
|
270
|
+
|
|
271
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
|
|
272
|
+
@protocol MTLObjectPayloadBinding<MTLBinding>
|
|
273
|
+
@property (readonly) NSUInteger objectPayloadAlignment; // min alignment of starting offset in the buffer
|
|
274
|
+
@property (readonly) NSUInteger objectPayloadDataSize; // sizeof(T) for T *argName
|
|
275
|
+
@end
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
NS_ASSUME_NONNULL_END
|
|
279
|
+
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLArgumentEncoder.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
@protocol MTLDevice;
|
|
13
|
+
@protocol MTLBuffer;
|
|
14
|
+
@protocol MTLTexture;
|
|
15
|
+
@protocol MTLSamplerState;
|
|
16
|
+
@protocol MTLRenderPipelineState;
|
|
17
|
+
@protocol MTLComputePipelineState;
|
|
18
|
+
@protocol MTLIndirectCommandBuffer;
|
|
19
|
+
@protocol MTLVisibleFunctionTable;
|
|
20
|
+
@protocol MTLAccelerationStructure;
|
|
21
|
+
@protocol MTLIntersectionFunctionTable;
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
@brief
|
|
25
|
+
When calling functions with an `attributeStrides:` parameter on a render
|
|
26
|
+
or compute command encoder, this value must be provided for the binding
|
|
27
|
+
points that are either not part of the set of MTLBufferLayoutDescriptor,
|
|
28
|
+
or whose stride values in the descriptor is not set to
|
|
29
|
+
`MTLBufferLayoutStrideDynamic`
|
|
30
|
+
*/
|
|
31
|
+
API_AVAILABLE(macos(14.0), ios(17.0))
|
|
32
|
+
static const NSUInteger MTLAttributeStrideStatic = NSUIntegerMax;
|
|
33
|
+
|
|
34
|
+
/*!
|
|
35
|
+
* @protocol MTLArgumentEncoder
|
|
36
|
+
* @discussion MTLArgumentEncoder encodes buffer, texture, sampler, and constant data into a buffer.
|
|
37
|
+
*/
|
|
38
|
+
API_AVAILABLE(macos(10.13), ios(11.0))
|
|
39
|
+
@protocol MTLArgumentEncoder <NSObject>
|
|
40
|
+
|
|
41
|
+
/*!
|
|
42
|
+
@property device
|
|
43
|
+
@abstract The device this argument encoder was created against.
|
|
44
|
+
*/
|
|
45
|
+
@property (readonly) id <MTLDevice> device;
|
|
46
|
+
|
|
47
|
+
/*!
|
|
48
|
+
@property label
|
|
49
|
+
@abstract A string to help identify this object.
|
|
50
|
+
*/
|
|
51
|
+
@property (nullable, copy, atomic) NSString *label;
|
|
52
|
+
|
|
53
|
+
/*!
|
|
54
|
+
* @property encodedLength
|
|
55
|
+
* @abstract The number of bytes required to store the encoded resource bindings.
|
|
56
|
+
*/
|
|
57
|
+
@property (readonly) NSUInteger encodedLength;
|
|
58
|
+
|
|
59
|
+
/*!
|
|
60
|
+
* @property alignment
|
|
61
|
+
* @abstract The alignment in bytes required to store the encoded resource bindings.
|
|
62
|
+
*/
|
|
63
|
+
@property (readonly) NSUInteger alignment;
|
|
64
|
+
|
|
65
|
+
/*!
|
|
66
|
+
* @method setArgumentBuffer:offset:
|
|
67
|
+
* @brief Sets the destination buffer and offset at which the arguments will be encoded.
|
|
68
|
+
*/
|
|
69
|
+
- (void)setArgumentBuffer:(nullable id <MTLBuffer>)argumentBuffer offset:(NSUInteger)offset;
|
|
70
|
+
|
|
71
|
+
/*!
|
|
72
|
+
* @method setArgumentBuffer:offset:arrayElement:
|
|
73
|
+
* @brief Sets the destination buffer, starting offset and specific array element arguments will be encoded into. arrayElement represents
|
|
74
|
+
the desired element of IAB array targetted by encoding
|
|
75
|
+
*/
|
|
76
|
+
- (void)setArgumentBuffer:(nullable id <MTLBuffer>)argumentBuffer startOffset:(NSUInteger)startOffset arrayElement:(NSUInteger)arrayElement;
|
|
77
|
+
|
|
78
|
+
/*!
|
|
79
|
+
* @method setBuffer:offset:atIndex:
|
|
80
|
+
* @brief Set a buffer at the given bind point index.
|
|
81
|
+
*/
|
|
82
|
+
- (void)setBuffer:(nullable id <MTLBuffer>)buffer offset:(NSUInteger)offset atIndex:(NSUInteger)index;
|
|
83
|
+
|
|
84
|
+
/*!
|
|
85
|
+
* @method setBuffers:offsets:withRange:
|
|
86
|
+
* @brief Set an array of buffers at the given bind point index range.
|
|
87
|
+
*/
|
|
88
|
+
- (void)setBuffers:(const id <MTLBuffer> __nullable [__nonnull])buffers offsets:(const NSUInteger [__nonnull])offsets withRange:(NSRange)range;
|
|
89
|
+
|
|
90
|
+
/*!
|
|
91
|
+
* @method setTexture:atIndex:
|
|
92
|
+
* @brief Set a texture at the given bind point index.
|
|
93
|
+
*/
|
|
94
|
+
- (void)setTexture:(nullable id <MTLTexture>)texture atIndex:(NSUInteger)index;
|
|
95
|
+
|
|
96
|
+
/*!
|
|
97
|
+
* @method setTextures:withRange:
|
|
98
|
+
* @brief Set an array of textures at the given bind point index range.
|
|
99
|
+
*/
|
|
100
|
+
- (void)setTextures:(const id <MTLTexture> __nullable [__nonnull])textures withRange:(NSRange)range;
|
|
101
|
+
|
|
102
|
+
/*!
|
|
103
|
+
* @method setSamplerState:atIndex:
|
|
104
|
+
* @brief Set a sampler at the given bind point index.
|
|
105
|
+
*/
|
|
106
|
+
- (void)setSamplerState:(nullable id <MTLSamplerState>)sampler atIndex:(NSUInteger)index;
|
|
107
|
+
|
|
108
|
+
/*!
|
|
109
|
+
* @method setSamplerStates:withRange:
|
|
110
|
+
* @brief Set an array of samplers at the given bind point index range.
|
|
111
|
+
*/
|
|
112
|
+
- (void)setSamplerStates:(const id <MTLSamplerState> __nullable [__nonnull])samplers withRange:(NSRange)range;
|
|
113
|
+
|
|
114
|
+
/*!
|
|
115
|
+
* @method constantDataAtIndex:
|
|
116
|
+
* @brief Returns a pointer to the constant data at the given bind point index.
|
|
117
|
+
*/
|
|
118
|
+
- (void*)constantDataAtIndex:(NSUInteger)index;
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/*!
|
|
122
|
+
* @method setRenderPipelineState:atIndex
|
|
123
|
+
* @brief Sets a render pipeline state at a given bind point index
|
|
124
|
+
*/
|
|
125
|
+
- (void)setRenderPipelineState:(nullable id <MTLRenderPipelineState>)pipeline atIndex:(NSUInteger)index API_AVAILABLE(macos(10.14), macCatalyst(13.0), ios(13.0));
|
|
126
|
+
|
|
127
|
+
/*!
|
|
128
|
+
* @method setRenderPipelineStates:withRange
|
|
129
|
+
* @brief Set an array of render pipeline states at a given bind point index range
|
|
130
|
+
*/
|
|
131
|
+
- (void)setRenderPipelineStates:(const id <MTLRenderPipelineState> __nullable [__nonnull])pipelines withRange:(NSRange)range API_AVAILABLE(macos(10.14), macCatalyst(13.0), ios(13.0));
|
|
132
|
+
|
|
133
|
+
/*!
|
|
134
|
+
* @method setComputePipelineState:atIndex
|
|
135
|
+
* @brief Sets a compute pipeline state at a given bind point index
|
|
136
|
+
*/
|
|
137
|
+
- (void)setComputePipelineState:(nullable id <MTLComputePipelineState>)pipeline atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
|
|
138
|
+
|
|
139
|
+
/*!
|
|
140
|
+
* @method setComputePipelineStates:withRange
|
|
141
|
+
* @brief Set an array of compute pipeline states at a given bind point index range
|
|
142
|
+
*/
|
|
143
|
+
- (void)setComputePipelineStates:(const id <MTLComputePipelineState> __nullable [__nonnull])pipelines withRange:(NSRange)range API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
|
|
144
|
+
|
|
145
|
+
/*!
|
|
146
|
+
* @method setIndirectCommandBuffer:atIndex
|
|
147
|
+
* @brief Sets an indirect command buffer at a given bind point index
|
|
148
|
+
*/
|
|
149
|
+
- (void)setIndirectCommandBuffer:(nullable id <MTLIndirectCommandBuffer>)indirectCommandBuffer atIndex:(NSUInteger)index API_AVAILABLE(macos(10.14), ios(12.0));
|
|
150
|
+
|
|
151
|
+
/*!
|
|
152
|
+
* @method setIndirectCommandBuffers:withRange:
|
|
153
|
+
* @brief Set an array of indirect command buffers at the given bind point index range.
|
|
154
|
+
*/
|
|
155
|
+
- (void)setIndirectCommandBuffers:(const id <MTLIndirectCommandBuffer> __nullable [__nonnull])buffers withRange:(NSRange)range API_AVAILABLE(macos(10.14), ios(12.0));
|
|
156
|
+
|
|
157
|
+
- (void)setAccelerationStructure:(nullable id <MTLAccelerationStructure>)accelerationStructure atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
158
|
+
|
|
159
|
+
/*!
|
|
160
|
+
* @method newArgumentEncoderForBufferAtIndex:
|
|
161
|
+
* @brief Returns a pointer to a new MTLArgumentEncoder that can be used to encode the an argument buffer
|
|
162
|
+
* in the buffer associated with a given index.
|
|
163
|
+
* Returns nil if the resource at the given index is not an argument buffer.
|
|
164
|
+
*/
|
|
165
|
+
- (nullable id<MTLArgumentEncoder>)newArgumentEncoderForBufferAtIndex:(NSUInteger)index API_AVAILABLE(macos(10.13), ios(11.0));
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/*!
|
|
171
|
+
* @method setVisibleFunctionTable:atIndex:
|
|
172
|
+
* @brief Set a visible function table at the given buffer index
|
|
173
|
+
*/
|
|
174
|
+
- (void)setVisibleFunctionTable:(nullable id <MTLVisibleFunctionTable>)visibleFunctionTable atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
175
|
+
|
|
176
|
+
/*!
|
|
177
|
+
* @method setVisibleFunctionTables:withRange:
|
|
178
|
+
* @brief Set visible function tables at the given buffer index range
|
|
179
|
+
*/
|
|
180
|
+
- (void)setVisibleFunctionTables:(const id <MTLVisibleFunctionTable> __nullable [__nonnull])visibleFunctionTables withRange:(NSRange)range API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
181
|
+
|
|
182
|
+
/*!
|
|
183
|
+
* @method setIntersectionFunctionTable:atIndex:
|
|
184
|
+
* @brief Set an intersection function table at the given buffer index
|
|
185
|
+
*/
|
|
186
|
+
- (void)setIntersectionFunctionTable:(nullable id <MTLIntersectionFunctionTable>)intersectionFunctionTable atIndex:(NSUInteger)index API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
187
|
+
|
|
188
|
+
/*!
|
|
189
|
+
* @method setIntersectionFunctionTables:withRange:
|
|
190
|
+
* @brief Set intersection function tables at the given buffer index range
|
|
191
|
+
*/
|
|
192
|
+
- (void)setIntersectionFunctionTables:(const id <MTLIntersectionFunctionTable> __nullable [__nonnull])intersectionFunctionTables withRange:(NSRange)range API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@end
|
|
197
|
+
|
|
198
|
+
NS_ASSUME_NONNULL_END
|
|
199
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLBinaryArchive.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2020 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLDevice.h>
|
|
11
|
+
@class MTLComputePipelineDescriptor;
|
|
12
|
+
@class MTLRenderPipelineDescriptor;
|
|
13
|
+
@class MTLTileRenderPipelineDescriptor;
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
MTL_EXTERN NSErrorDomain const MTLBinaryArchiveDomain API_AVAILABLE(macos(11.0), ios(14.0));
|
|
18
|
+
|
|
19
|
+
typedef NS_ENUM(NSUInteger, MTLBinaryArchiveError)
|
|
20
|
+
{
|
|
21
|
+
MTLBinaryArchiveErrorNone = 0,
|
|
22
|
+
MTLBinaryArchiveErrorInvalidFile = 1,
|
|
23
|
+
MTLBinaryArchiveErrorUnexpectedElement = 2,
|
|
24
|
+
MTLBinaryArchiveErrorCompilationFailure = 3,
|
|
25
|
+
MTLBinaryArchiveErrorInternalError API_AVAILABLE(macos(13.0), ios(16.0)) = 4,
|
|
26
|
+
} API_AVAILABLE(macos(11.0), ios(14.0));
|
|
27
|
+
|
|
28
|
+
/*!
|
|
29
|
+
@class MTLBinaryArchiveDescriptor
|
|
30
|
+
@abstract A class used to indicate how an archive should be created
|
|
31
|
+
*/
|
|
32
|
+
MTL_EXPORT API_AVAILABLE(macos(11.0), ios(14.0))
|
|
33
|
+
@interface MTLBinaryArchiveDescriptor : NSObject <NSCopying>
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
@property url
|
|
37
|
+
@abstract The file URL from which to open a MTLBinaryArchive, or nil to create an empty MTLBinaryArchive.
|
|
38
|
+
*/
|
|
39
|
+
@property (readwrite, nullable, nonatomic, copy) NSURL *url;
|
|
40
|
+
|
|
41
|
+
@end
|
|
42
|
+
|
|
43
|
+
/*!
|
|
44
|
+
@protocol MTLBinaryArchive
|
|
45
|
+
@abstract A container of pipeline state descriptors and their associated compiled code.
|
|
46
|
+
@discussion A MTLBinaryArchive allows to persist compiled pipeline state objects for a device, which can be used to skip recompilation on a subsequent run of the app.
|
|
47
|
+
One or more archives may be supplied in the descriptor of a pipeline state, allowing the device to attempt to look up compiled code in them before performing compilation.
|
|
48
|
+
If no archives are provided, or no archives contain the requested content, the pipeline state is created by compiling the code as usual.
|
|
49
|
+
Note that software updates of the OS or device drivers may cause the archive to become outdated, causing the lookup to fail and the usual path performing on-demand compilation is taken.
|
|
50
|
+
A MTLBinaryArchive is populated by adding functions from pipeline state descriptors to it, indicating which compiled code should be persisted in the archive.
|
|
51
|
+
Once all desired pipeline state descriptors have been added, use serializeToURL:error: to write the contents for the current device to disk.
|
|
52
|
+
MTLBinaryArchive files generated for multiple different devices can be combined using the "lipo" tool into a single archive, which can then be shipped with the application.
|
|
53
|
+
It is possible to maintain different archive files for different contexts; for example each level in a game may use a different cache object.
|
|
54
|
+
Note: Metal maintains a separate cache of pipeline states on behalf of each app that contains all compiled code; this cache is populated as compilation occurs.
|
|
55
|
+
This cache will automatically accelerate pipeline state creation after a pipeline is created for the first time.
|
|
56
|
+
Use MTLBinaryArchive to augment that cache by accelerating pipeline state creation even on the first run of an app.
|
|
57
|
+
Updating a MTLBinaryArchive at runtime in a shipping app configuration is not recommended; such a scenario requires corruption resiliency, careful storage space management and may cache hard-to-reproduce errors.
|
|
58
|
+
These kind of issues are handled transparently by the Metal maintained cache, therefore we recommend that MTLBinaryArchive is populated during development time and shipped as an asset.
|
|
59
|
+
*/
|
|
60
|
+
API_AVAILABLE(macos(11.0), ios(14.0))
|
|
61
|
+
@protocol MTLBinaryArchive <NSObject>
|
|
62
|
+
|
|
63
|
+
/*!
|
|
64
|
+
@property label
|
|
65
|
+
@abstract A string to help identify this object.
|
|
66
|
+
*/
|
|
67
|
+
@property (nullable, copy, atomic) NSString *label;
|
|
68
|
+
|
|
69
|
+
/*!
|
|
70
|
+
@property device
|
|
71
|
+
@abstract The device this resource was created against. This resource can only be used with this device.
|
|
72
|
+
*/
|
|
73
|
+
@property (readonly) id<MTLDevice> device;
|
|
74
|
+
|
|
75
|
+
/*!
|
|
76
|
+
@method addComputePipelineFunctionsWithDescriptor:error:
|
|
77
|
+
@abstract Add the function(s) from a compute pipeline state to the archive.
|
|
78
|
+
@param descriptor The descriptor from which function(s) will be added.
|
|
79
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
|
|
80
|
+
@return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
|
|
81
|
+
*/
|
|
82
|
+
- (BOOL) addComputePipelineFunctionsWithDescriptor:(MTLComputePipelineDescriptor*)descriptor error:(NSError**)error;
|
|
83
|
+
|
|
84
|
+
/*!
|
|
85
|
+
@method addRenderPipelineFunctionsWithDescriptor:error:
|
|
86
|
+
@abstract Add the function(s) from a render pipeline state to the archive.
|
|
87
|
+
@param descriptor The descriptor from which function(s) will be added.
|
|
88
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
|
|
89
|
+
@return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
|
|
90
|
+
*/
|
|
91
|
+
- (BOOL) addRenderPipelineFunctionsWithDescriptor:(MTLRenderPipelineDescriptor*)descriptor error:(NSError**)error;
|
|
92
|
+
|
|
93
|
+
/*!
|
|
94
|
+
@method addTileRenderPipelineFunctionsWithDescriptor:error:
|
|
95
|
+
@abstract Add the function(s) from a tile render pipeline state to the archive.
|
|
96
|
+
@param descriptor The descriptor from which function(s) will be added.
|
|
97
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
|
|
98
|
+
@return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
|
|
99
|
+
*/
|
|
100
|
+
- (BOOL) addTileRenderPipelineFunctionsWithDescriptor:(MTLTileRenderPipelineDescriptor*)descriptor error:(NSError**)error API_AVAILABLE(tvos(14.5));
|
|
101
|
+
|
|
102
|
+
/*!
|
|
103
|
+
@method addMeshRenderPipelineFunctionsWithDescriptor:error:
|
|
104
|
+
@abstract Add the function(s) from a mesh render pipeline state to the archive.
|
|
105
|
+
@param descriptor The descriptor from which function(s) will be added.
|
|
106
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
|
|
107
|
+
@return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
|
|
108
|
+
*/
|
|
109
|
+
- (BOOL) addMeshRenderPipelineFunctionsWithDescriptor:(MTLMeshRenderPipelineDescriptor*)descriptor error:(NSError**)error API_AVAILABLE(macos(15.0), ios(18.0));
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/*!
|
|
113
|
+
@method addLibraryWithDescriptor:error:
|
|
114
|
+
@abstract Add the function(s) from a stitched library to the archive.
|
|
115
|
+
@param descriptor The stitched library descriptor from which function(s) will be added.
|
|
116
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain.
|
|
117
|
+
@return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
|
|
118
|
+
*/
|
|
119
|
+
- (BOOL) addLibraryWithDescriptor:(MTLStitchedLibraryDescriptor *)descriptor error:(NSError **)error API_AVAILABLE(macos(15.0), ios(18.0));
|
|
120
|
+
/*!
|
|
121
|
+
@method serializeToURL:error:
|
|
122
|
+
@abstract Write the contents of a MTLBinaryArchive to a file.
|
|
123
|
+
@discussion Persisting the archive to a file allows opening the archive on a subsequent instance of the app, making available the contents without recompiling.
|
|
124
|
+
@param url The file URL to which to write the file
|
|
125
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain. Other possible errors can be file access or I/O related.
|
|
126
|
+
@return Whether or not the writing the file succeeded.
|
|
127
|
+
*/
|
|
128
|
+
- (BOOL) serializeToURL:(NSURL*)url error:(NSError**)error;
|
|
129
|
+
|
|
130
|
+
/*!
|
|
131
|
+
@method addFunctionWithDescriptor:library:error:
|
|
132
|
+
@abstract Add a `visible` or `intersection` function to the archive.
|
|
133
|
+
@param descriptor The descriptor from which the function will be added.
|
|
134
|
+
@param library Library of functions to add the function from.
|
|
135
|
+
@param error If the function fails, this will be set to describe the failure. This can be (but is not required to be) an error from the MTLBinaryArchiveDomain domain. Other possible errors can be file access or I/O related.
|
|
136
|
+
@return Whether or not the addition succeeded. Functions referenced multiple times are silently accepted.
|
|
137
|
+
*/
|
|
138
|
+
- (BOOL) addFunctionWithDescriptor:(MTLFunctionDescriptor *)descriptor library:(id<MTLLibrary>)library error:(NSError **)error API_AVAILABLE(macos(12.0), ios(15.0));
|
|
139
|
+
|
|
140
|
+
@end
|
|
141
|
+
|
|
142
|
+
NS_ASSUME_NONNULL_END
|