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,284 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLHeap.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLAllocation.h>
|
|
11
|
+
#import <Metal/MTLResource.h>
|
|
12
|
+
#import <Metal/MTLBuffer.h>
|
|
13
|
+
#import <Metal/MTLTexture.h>
|
|
14
|
+
#import <Metal/MTLTypes.h>
|
|
15
|
+
#import <Metal/MTLAccelerationStructure.h>
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
@enum MTLHeapType
|
|
21
|
+
@abstract Describes the mode of operation for an MTLHeap.
|
|
22
|
+
@constant MTLHeapTypeAutomatic
|
|
23
|
+
In this mode, resources are placed in the heap automatically.
|
|
24
|
+
Automatically placed resources have optimal GPU-specific layout, and may perform better than MTLHeapTypePlacement.
|
|
25
|
+
This heap type is recommended when the heap primarily contains temporary write-often resources.
|
|
26
|
+
@constant MTLHeapTypePlacement
|
|
27
|
+
In this mode, the app places resources in the heap.
|
|
28
|
+
Manually placed resources allow the app to control memory usage and heap fragmentation directly.
|
|
29
|
+
This heap type is recommended when the heap primarily contains persistent write-rarely resources.
|
|
30
|
+
*/
|
|
31
|
+
typedef NS_ENUM(NSInteger, MTLHeapType)
|
|
32
|
+
{
|
|
33
|
+
MTLHeapTypeAutomatic = 0,
|
|
34
|
+
MTLHeapTypePlacement = 1,
|
|
35
|
+
MTLHeapTypeSparse API_AVAILABLE(macos(11.0), macCatalyst(14.0), tvos(16.0)) = 2 ,
|
|
36
|
+
} API_AVAILABLE(macos(10.15), ios(13.0));
|
|
37
|
+
|
|
38
|
+
/*!
|
|
39
|
+
@class MTLHeapDescriptor
|
|
40
|
+
*/
|
|
41
|
+
MTL_EXPORT API_AVAILABLE(macos(10.13), ios(10.0))
|
|
42
|
+
@interface MTLHeapDescriptor : NSObject <NSCopying>
|
|
43
|
+
|
|
44
|
+
/*!
|
|
45
|
+
@property size
|
|
46
|
+
@abstract Requested size of the heap's backing memory.
|
|
47
|
+
@discussion The size may be rounded up to GPU page granularity.
|
|
48
|
+
*/
|
|
49
|
+
@property (readwrite, nonatomic) NSUInteger size;
|
|
50
|
+
|
|
51
|
+
/*!
|
|
52
|
+
@property storageMode
|
|
53
|
+
@abstract Storage mode for the heap. Default is MTLStorageModePrivate.
|
|
54
|
+
@discussion All resources created from this heap share the same storage mode.
|
|
55
|
+
MTLStorageModeManaged and MTLStorageModeMemoryless are disallowed.
|
|
56
|
+
*/
|
|
57
|
+
@property (readwrite, nonatomic) MTLStorageMode storageMode;
|
|
58
|
+
|
|
59
|
+
/*!
|
|
60
|
+
@property cpuCacheMode
|
|
61
|
+
@abstract CPU cache mode for the heap. Default is MTLCPUCacheModeDefaultCache.
|
|
62
|
+
@discussion All resources created from this heap share the same cache mode.
|
|
63
|
+
CPU cache mode is ignored for MTLStorageModePrivate.
|
|
64
|
+
*/
|
|
65
|
+
@property (readwrite, nonatomic) MTLCPUCacheMode cpuCacheMode;
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/*!
|
|
70
|
+
@property sparsePageSize
|
|
71
|
+
@abstract The sparse page size to use for resources created from the heap.
|
|
72
|
+
*/
|
|
73
|
+
@property (readwrite, nonatomic) MTLSparsePageSize sparsePageSize API_AVAILABLE(macos(13.0), ios(16.0));
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/*!
|
|
77
|
+
@property hazardTrackingMode
|
|
78
|
+
@abstract Set hazard tracking mode for the heap. The default value is MTLHazardTrackingModeDefault.
|
|
79
|
+
@discussion For heaps, MTLHazardTrackingModeDefault is treated as MTLHazardTrackingModeUntracked.
|
|
80
|
+
Setting hazardTrackingMode to MTLHazardTrackingModeTracked causes hazard tracking to be enabled heap.
|
|
81
|
+
When a resource on a hazard tracked heap is modified, reads and writes from all resources suballocated on that heap will be delayed until the modification is complete.
|
|
82
|
+
Similarly, modifying heap resources will be delayed until all in-flight reads and writes from all resources suballocated on that heap have completed.
|
|
83
|
+
For optimal performance, perform hazard tracking manually through MTLFence or MTLEvent instead.
|
|
84
|
+
All resources created from this heap shared the same hazard tracking mode.
|
|
85
|
+
*/
|
|
86
|
+
@property (readwrite, nonatomic) MTLHazardTrackingMode hazardTrackingMode API_AVAILABLE(macos(10.15), ios(13.0));
|
|
87
|
+
|
|
88
|
+
/*!
|
|
89
|
+
@property resourceOptions
|
|
90
|
+
@abstract A packed tuple of the storageMode, cpuCacheMode and hazardTrackingMode properties.
|
|
91
|
+
@discussion Modifications to this property are reflected in the other properties and vice versa.
|
|
92
|
+
*/
|
|
93
|
+
@property (readwrite, nonatomic) MTLResourceOptions resourceOptions API_AVAILABLE(macos(10.15), ios(13.0));
|
|
94
|
+
|
|
95
|
+
/*!
|
|
96
|
+
@property type
|
|
97
|
+
@abstract The type of the heap. The default value is MTLHeapTypeAutomatic.
|
|
98
|
+
@discussion This constrains the resource creation functions that are available.
|
|
99
|
+
*/
|
|
100
|
+
@property (readwrite, nonatomic) MTLHeapType type API_AVAILABLE(macos(10.15), ios(13.0));
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@end
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/*!
|
|
108
|
+
@protocol MTLHeap
|
|
109
|
+
*/
|
|
110
|
+
API_AVAILABLE(macos(10.13), ios(10.0))
|
|
111
|
+
@protocol MTLHeap <MTLAllocation>
|
|
112
|
+
|
|
113
|
+
/*!
|
|
114
|
+
@property label
|
|
115
|
+
@abstract A string to help identify this heap.
|
|
116
|
+
*/
|
|
117
|
+
@property (nullable, copy, atomic) NSString *label;
|
|
118
|
+
|
|
119
|
+
/*!
|
|
120
|
+
@property device
|
|
121
|
+
@abstract The device this heap was created against. This heap can only be used with this device.
|
|
122
|
+
*/
|
|
123
|
+
@property (readonly) id <MTLDevice> device;
|
|
124
|
+
|
|
125
|
+
/*!
|
|
126
|
+
@property storageMode
|
|
127
|
+
@abstract Current heap storage mode, default is MTLStorageModePrivate.
|
|
128
|
+
@discussion All resources created from this heap share the same storage mode.
|
|
129
|
+
*/
|
|
130
|
+
@property (readonly) MTLStorageMode storageMode;
|
|
131
|
+
|
|
132
|
+
/*!
|
|
133
|
+
@property cpuCacheMode
|
|
134
|
+
@abstract CPU cache mode for the heap. Default is MTLCPUCacheModeDefaultCache.
|
|
135
|
+
@discussion All resources created from this heap share the same cache mode.
|
|
136
|
+
*/
|
|
137
|
+
@property (readonly) MTLCPUCacheMode cpuCacheMode;
|
|
138
|
+
|
|
139
|
+
/*!
|
|
140
|
+
@property hazardTrackingMode
|
|
141
|
+
@abstract Whether or not the heap is hazard tracked.
|
|
142
|
+
@discussion
|
|
143
|
+
When a resource on a hazard tracked heap is modified, reads and writes from any other resource on that heap will be delayed until the modification is complete.
|
|
144
|
+
Similarly, modifying heap resources will be delayed until all in-flight reads and writes from resources suballocated on that heap have completed.
|
|
145
|
+
For optimal performance, perform hazard tracking manually through MTLFence or MTLEvent instead.
|
|
146
|
+
Resources on the heap may opt-out of hazard tracking individually when the heap is hazard tracked,
|
|
147
|
+
however resources cannot opt-in to hazard tracking when the heap is not hazard tracked.
|
|
148
|
+
*/
|
|
149
|
+
@property (readonly) MTLHazardTrackingMode hazardTrackingMode API_AVAILABLE(macos(10.15), ios(13.0));
|
|
150
|
+
|
|
151
|
+
/*!
|
|
152
|
+
@property resourceOptions
|
|
153
|
+
@abstract A packed tuple of the storageMode, cpuCacheMode and hazardTrackingMode properties.
|
|
154
|
+
*/
|
|
155
|
+
@property (readonly) MTLResourceOptions resourceOptions API_AVAILABLE(macos(10.15), ios(13.0));
|
|
156
|
+
|
|
157
|
+
/*!
|
|
158
|
+
@property size
|
|
159
|
+
@abstract Heap size in bytes, specified at creation time and rounded up to device specific alignment.
|
|
160
|
+
*/
|
|
161
|
+
@property (readonly) NSUInteger size;
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/*!
|
|
165
|
+
@property usedSize
|
|
166
|
+
@abstract The size in bytes, of all resources allocated from the heap.
|
|
167
|
+
*/
|
|
168
|
+
@property (readonly) NSUInteger usedSize;
|
|
169
|
+
|
|
170
|
+
/*!
|
|
171
|
+
@property currentAllocatedSize
|
|
172
|
+
@abstract The size in bytes of the current heap allocation.
|
|
173
|
+
*/
|
|
174
|
+
@property (readonly) NSUInteger currentAllocatedSize API_AVAILABLE(macos(10.13), ios(11.0));
|
|
175
|
+
|
|
176
|
+
/*!
|
|
177
|
+
@method maxAvailableSizeWithAlignment:
|
|
178
|
+
@abstract The maximum size that can be successfully allocated from the heap in bytes, taking into notice given alignment. Alignment needs to be zero, or power of two.
|
|
179
|
+
@discussion Provides a measure of fragmentation within the heap.
|
|
180
|
+
*/
|
|
181
|
+
- (NSUInteger)maxAvailableSizeWithAlignment:(NSUInteger)alignment;
|
|
182
|
+
|
|
183
|
+
/*!
|
|
184
|
+
@method newBufferWithLength:options:
|
|
185
|
+
@abstract Create a new buffer backed by heap memory.
|
|
186
|
+
@discussion The requested storage and CPU cache modes must match the storage and CPU cache modes of the heap.
|
|
187
|
+
@return The buffer or nil if heap is full.
|
|
188
|
+
*/
|
|
189
|
+
- (nullable id <MTLBuffer>)newBufferWithLength:(NSUInteger)length
|
|
190
|
+
options:(MTLResourceOptions)options;
|
|
191
|
+
|
|
192
|
+
/*!
|
|
193
|
+
@method newTextureWithDescriptor:
|
|
194
|
+
@abstract Create a new texture backed by heap memory.
|
|
195
|
+
@discussion The requested storage and CPU cache modes must match the storage and CPU cache modes of the heap, with the exception that the requested storage mode can be MTLStorageModeMemoryless.
|
|
196
|
+
@return The texture or nil if heap is full.
|
|
197
|
+
*/
|
|
198
|
+
- (nullable id <MTLTexture>)newTextureWithDescriptor:(MTLTextureDescriptor *)descriptor;
|
|
199
|
+
|
|
200
|
+
/*!
|
|
201
|
+
@method setPurgeabilityState:
|
|
202
|
+
@abstract Set or query the purgeability state of the heap.
|
|
203
|
+
*/
|
|
204
|
+
- (MTLPurgeableState)setPurgeableState:(MTLPurgeableState)state;
|
|
205
|
+
|
|
206
|
+
/*!
|
|
207
|
+
@property type
|
|
208
|
+
@abstract The type of the heap. The default value is MTLHeapTypeAutomatic.
|
|
209
|
+
@discussion This constrains the resource creation functions that are available on the heap.
|
|
210
|
+
*/
|
|
211
|
+
@property (readonly) MTLHeapType type API_AVAILABLE(macos(10.15), ios(13.0));
|
|
212
|
+
|
|
213
|
+
/*!
|
|
214
|
+
@method newBufferWithLength:options:offset:
|
|
215
|
+
@abstract Create a new buffer backed by heap memory at the specified placement offset.
|
|
216
|
+
@discussion This method can only be used when heapType is set to MTLHeapTypePlacement.
|
|
217
|
+
Use "MTLDevice heapBufferSizeAndAlignWithLength:options:" to determine requiredSize and requiredAlignment.
|
|
218
|
+
Any resources that exist in this heap at overlapping half-open range [offset, offset + requiredSize) are implicitly aliased with the new resource.
|
|
219
|
+
@param length The requested size of the buffer, in bytes.
|
|
220
|
+
@param options The requested options of the buffer, of which the storage and CPU cache mode must match these of the heap.
|
|
221
|
+
@param offset The requested offset of the buffer inside the heap, in bytes. Behavior is undefined if "offset + requiredSize > heap.size" or "offset % requiredAlignment != 0".
|
|
222
|
+
@return The buffer, or nil if the heap is not a placement heap
|
|
223
|
+
*/
|
|
224
|
+
- (nullable id<MTLBuffer>)newBufferWithLength:(NSUInteger)length
|
|
225
|
+
options:(MTLResourceOptions)options
|
|
226
|
+
offset:(NSUInteger)offset API_AVAILABLE(macos(10.15), ios(13.0));
|
|
227
|
+
|
|
228
|
+
/*!
|
|
229
|
+
@method newTextureWithDescriptor:offset:
|
|
230
|
+
@abstract Create a new texture backed by heap memory at the specified placement offset.
|
|
231
|
+
@discussion This method can only be used when heapType is set to MTLHeapTypePlacement.
|
|
232
|
+
Use "MTLDevice heapTextureSizeAndAlignWithDescriptor:" to determine requiredSize and requiredAlignment.
|
|
233
|
+
Any resources that exist in this heap at overlapping half-open range [offset, offset + requiredSize) are implicitly aliased with the new resource.
|
|
234
|
+
@param descriptor The requested properties of the texture, of which the storage and CPU cache mode must match those of the heap.
|
|
235
|
+
@param offset The requested offset of the texture inside the heap, in bytes. Behavior is undefined if "offset + requiredSize > heap.size" and "offset % requiredAlignment != 0".
|
|
236
|
+
@return The texture, or nil if the heap is not a placement heap.
|
|
237
|
+
*/
|
|
238
|
+
- (nullable id<MTLTexture>)newTextureWithDescriptor:(MTLTextureDescriptor *)descriptor
|
|
239
|
+
offset:(NSUInteger)offset API_AVAILABLE(macos(10.15), ios(13.0));
|
|
240
|
+
|
|
241
|
+
/*!
|
|
242
|
+
@method newAccelerationStructureWithSize:
|
|
243
|
+
@abstract Create a new acceleration structure backed by heap memory.
|
|
244
|
+
@return The acceleration structure or nil if heap is full. Note that the MTLAccelerationStructure merely represents storage for an acceleration structure. It will still need to be populated via a build, copy, refit, etc.
|
|
245
|
+
*/
|
|
246
|
+
- (nullable id <MTLAccelerationStructure>)newAccelerationStructureWithSize:(NSUInteger)size API_AVAILABLE(macos(13.0), ios(16.0));
|
|
247
|
+
|
|
248
|
+
/*!
|
|
249
|
+
@method newAccelerationStructureWithDescriptor:
|
|
250
|
+
@abstract Create a new acceleration structure backed by heap memory.
|
|
251
|
+
@discussion This is a convenience method which creates the acceleration structure backed by heap memory. The acceleration structure size is inferred based on the descriptor.
|
|
252
|
+
@return The acceleration structure or nil if heap is full. Note that the MTLAccelerationStructure merely represents storage for an acceleration structure. It will still need to be populated via a build, copy, refit, etc.
|
|
253
|
+
*/
|
|
254
|
+
- (nullable id <MTLAccelerationStructure>)newAccelerationStructureWithDescriptor:(MTLAccelerationStructureDescriptor *)descriptor API_AVAILABLE(macos(13.0), ios(16.0));
|
|
255
|
+
|
|
256
|
+
/*!
|
|
257
|
+
@method newAccelerationStructureWithSize:offset:
|
|
258
|
+
@abstract Create a new acceleration structure backed by heap memory at the specified placement offset.
|
|
259
|
+
@discussion This method can only be used when heapType is set to MTLHeapTypePlacement.
|
|
260
|
+
Use "MTLDevice heapAccelerationStructureSizeAndAlignWithSize:" or "MTLDevice heapAccelerationStructureSizeAndAlignWithDescriptor:" to determine requiredSize and requiredAlignment.
|
|
261
|
+
Any resources that exist in this heap at overlapping half-open range [offset, offset + requiredSize) are implicitly aliased with the new resource.
|
|
262
|
+
@param size The requested size of the acceleration structure, in bytes.
|
|
263
|
+
@param offset The requested offset of the acceleration structure inside the heap, in bytes. Behavior is undefined if "offset + requiredSize > heap.size" or "offset % requiredAlignment != 0".
|
|
264
|
+
@return The acceleration structure, or nil if the heap is not a placement heap
|
|
265
|
+
*/
|
|
266
|
+
- (nullable id <MTLAccelerationStructure>)newAccelerationStructureWithSize:(NSUInteger)size offset:(NSUInteger)offset API_AVAILABLE(macos(13.0), ios(16.0));
|
|
267
|
+
|
|
268
|
+
/*!
|
|
269
|
+
@method newAccelerationStructureWithDescriptor:offset:
|
|
270
|
+
@abstract Create a new acceleration structure backed by heap memory at the specified placement offset.
|
|
271
|
+
@discussion This is a convenience method which computes the acceleration structure size based on the descriptor.
|
|
272
|
+
This method can only be used when heapType is set to MTLHeapTypePlacement.
|
|
273
|
+
Use "MTLDevice heapAccelerationStructureSizeAndAlignWithSize:" or "MTLDevice heapAccelerationStructureSizeAndAlignWithDescriptor:" to determine requiredSize and requiredAlignment.
|
|
274
|
+
Any resources that exist in this heap at overlapping half-open range [offset, offset + requiredSize) are implicitly aliased with the new resource.
|
|
275
|
+
@param descriptor The acceleration structure descriptor
|
|
276
|
+
@param offset The requested offset of the acceleration structure inside the heap, in bytes. Behavior is undefined if "offset + requiredSize > heap.size" or "offset % requiredAlignment != 0".
|
|
277
|
+
@return The acceleration structure, or nil if the heap is not a placement heap
|
|
278
|
+
*/
|
|
279
|
+
- (nullable id <MTLAccelerationStructure>)newAccelerationStructureWithDescriptor:(MTLAccelerationStructureDescriptor *)descriptor offset:(NSUInteger)offset API_AVAILABLE(macos(13.0), ios(16.0));
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
@end
|
|
283
|
+
|
|
284
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLIndirectCommandBuffer.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2017 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLIndirectCommandEncoder.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
@abstract
|
|
17
|
+
A bitfield of commands that may be performed indirectly.
|
|
18
|
+
*/
|
|
19
|
+
typedef NS_OPTIONS(NSUInteger, MTLIndirectCommandType) {
|
|
20
|
+
MTLIndirectCommandTypeDraw = (1 << 0),
|
|
21
|
+
MTLIndirectCommandTypeDrawIndexed = (1 << 1),
|
|
22
|
+
MTLIndirectCommandTypeDrawPatches API_AVAILABLE(tvos(14.5)) = (1 << 2),
|
|
23
|
+
MTLIndirectCommandTypeDrawIndexedPatches API_AVAILABLE(tvos(14.5)) = (1 << 3) ,
|
|
24
|
+
|
|
25
|
+
MTLIndirectCommandTypeConcurrentDispatch API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0)) = (1 << 5), /* Dispatch threadgroups with concurrent execution */
|
|
26
|
+
|
|
27
|
+
MTLIndirectCommandTypeConcurrentDispatchThreads API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0)) = (1 << 6), /* Dispatch threads with concurrent execution */
|
|
28
|
+
MTLIndirectCommandTypeDrawMeshThreadgroups API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1)) = (1 << 7),
|
|
29
|
+
MTLIndirectCommandTypeDrawMeshThreads API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1)) = (1 << 8),
|
|
30
|
+
} API_AVAILABLE(macos(10.14), ios(12.0));
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/*!
|
|
34
|
+
@abstract The data layout required for specifying an indirect command buffer execution range.
|
|
35
|
+
*/
|
|
36
|
+
typedef struct
|
|
37
|
+
{
|
|
38
|
+
uint32_t location;
|
|
39
|
+
uint32_t length;
|
|
40
|
+
} MTLIndirectCommandBufferExecutionRange API_AVAILABLE(macos(10.14), macCatalyst(13.0), ios(13.0));
|
|
41
|
+
|
|
42
|
+
MTL_INLINE MTLIndirectCommandBufferExecutionRange MTLIndirectCommandBufferExecutionRangeMake(uint32_t location, uint32_t length) API_AVAILABLE(macos(10.14), macCatalyst(13.0), ios(13.0))
|
|
43
|
+
{
|
|
44
|
+
MTLIndirectCommandBufferExecutionRange icbRange = {location, length};
|
|
45
|
+
return icbRange;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/*!
|
|
49
|
+
@abstract
|
|
50
|
+
Describes the limits and features that can be used in an indirect command
|
|
51
|
+
*/
|
|
52
|
+
MTL_EXPORT API_AVAILABLE(macos(10.14), ios(12.0))
|
|
53
|
+
@interface MTLIndirectCommandBufferDescriptor : NSObject <NSCopying>
|
|
54
|
+
|
|
55
|
+
/*!
|
|
56
|
+
@abstract
|
|
57
|
+
A bitfield of the command types that be encoded.
|
|
58
|
+
@discussion
|
|
59
|
+
MTLCommandTypeDispatch cannot be mixed with any other command type.
|
|
60
|
+
*/
|
|
61
|
+
@property (readwrite, nonatomic) MTLIndirectCommandType commandTypes;
|
|
62
|
+
|
|
63
|
+
/*!
|
|
64
|
+
@abstract
|
|
65
|
+
Whether the render or compute pipeline are inherited from the encoder
|
|
66
|
+
*/
|
|
67
|
+
@property (readwrite, nonatomic) BOOL inheritPipelineState API_AVAILABLE(macos(10.14), ios(13.0));
|
|
68
|
+
|
|
69
|
+
/*!
|
|
70
|
+
@abstract
|
|
71
|
+
Whether the render or compute pipeline can set arguments.
|
|
72
|
+
*/
|
|
73
|
+
@property (readwrite, nonatomic) BOOL inheritBuffers;
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/*!
|
|
77
|
+
@abstract
|
|
78
|
+
The maximum bind index of vertex argument buffers that can be set per command.
|
|
79
|
+
*/
|
|
80
|
+
@property (readwrite, nonatomic) NSUInteger maxVertexBufferBindCount;
|
|
81
|
+
|
|
82
|
+
/*!
|
|
83
|
+
@abstract
|
|
84
|
+
The maximum bind index of fragment argument buffers that can be set per command.
|
|
85
|
+
*/
|
|
86
|
+
@property (readwrite, nonatomic) NSUInteger maxFragmentBufferBindCount;
|
|
87
|
+
|
|
88
|
+
/*!
|
|
89
|
+
@abstract
|
|
90
|
+
The maximum bind index of kernel (or tile) argument buffers that can be set per command.
|
|
91
|
+
*/
|
|
92
|
+
@property (readwrite, nonatomic) NSUInteger maxKernelBufferBindCount API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
|
|
93
|
+
|
|
94
|
+
/*!
|
|
95
|
+
@abstract
|
|
96
|
+
The maximum bind index of kernel (or tile) threadgroup memory that can be set per command.
|
|
97
|
+
The default value is 31.
|
|
98
|
+
*/
|
|
99
|
+
@property (readwrite, nonatomic) NSUInteger maxKernelThreadgroupMemoryBindCount API_AVAILABLE(macos(14.0), ios(17.0));
|
|
100
|
+
|
|
101
|
+
/*!
|
|
102
|
+
@abstract
|
|
103
|
+
The maximum bind index of object stage buffers that can be set per render command.
|
|
104
|
+
*/
|
|
105
|
+
@property (readwrite, nonatomic) NSUInteger maxObjectBufferBindCount API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
106
|
+
/*!
|
|
107
|
+
@abstract
|
|
108
|
+
The maximum bind index of mesh stage buffers that can be set per render command.
|
|
109
|
+
*/
|
|
110
|
+
@property (readwrite, nonatomic) NSUInteger maxMeshBufferBindCount API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
111
|
+
|
|
112
|
+
/*!
|
|
113
|
+
@abstract
|
|
114
|
+
The maximum bind index of object threadgroup memory that can be set per render command.
|
|
115
|
+
The default value is 0.
|
|
116
|
+
*/
|
|
117
|
+
@property (readwrite, nonatomic) NSUInteger maxObjectThreadgroupMemoryBindCount API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
118
|
+
|
|
119
|
+
/*!
|
|
120
|
+
@abstract
|
|
121
|
+
Whether the render or compute commands can use ray tracing. Default value is NO.
|
|
122
|
+
*/
|
|
123
|
+
@property (readwrite, nonatomic) BOOL supportRayTracing API_AVAILABLE(macos(13.0), ios(16.0));
|
|
124
|
+
|
|
125
|
+
/*!
|
|
126
|
+
@brief
|
|
127
|
+
allows binding pipelines that have at least one MTLBufferLayout with a
|
|
128
|
+
stride of `MTLBufferLayoutStrideDynamic`
|
|
129
|
+
|
|
130
|
+
will allow setting attributeStride in `setVertexBuffer` / `setKernelBuffer`
|
|
131
|
+
calls
|
|
132
|
+
*/
|
|
133
|
+
@property (readwrite, nonatomic) BOOL supportDynamicAttributeStride API_AVAILABLE(macos(14.0), ios(17.0));
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
@end
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
API_AVAILABLE(macos(10.14), ios(12.0))
|
|
140
|
+
@protocol MTLIndirectCommandBuffer <MTLResource>
|
|
141
|
+
|
|
142
|
+
@property (readonly) NSUInteger size;
|
|
143
|
+
|
|
144
|
+
/*!
|
|
145
|
+
@property gpuResourceID
|
|
146
|
+
@abstract Handle of the GPU resource suitable for storing in an Argument Buffer
|
|
147
|
+
*/
|
|
148
|
+
@property (readonly) MTLResourceID gpuResourceID API_AVAILABLE(macos(13.0), ios(16.0));
|
|
149
|
+
|
|
150
|
+
-(void)resetWithRange:(NSRange)range;
|
|
151
|
+
|
|
152
|
+
- (id <MTLIndirectRenderCommand>)indirectRenderCommandAtIndex:(NSUInteger)commandIndex;
|
|
153
|
+
- (id <MTLIndirectComputeCommand>)indirectComputeCommandAtIndex:(NSUInteger)commandIndex API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0));
|
|
154
|
+
|
|
155
|
+
@end
|
|
156
|
+
|
|
157
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLIndirectCommandEncoder.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2017 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Metal/MTLDefines.h>
|
|
9
|
+
#import <Metal/MTLStageInputOutputDescriptor.h>
|
|
10
|
+
#import <Metal/MTLRenderPipeline.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
@abstract
|
|
16
|
+
Describes a CPU-recorded indirect render command
|
|
17
|
+
*/
|
|
18
|
+
API_AVAILABLE(macos(10.14), ios(12.0))
|
|
19
|
+
@protocol MTLIndirectRenderCommand <NSObject>
|
|
20
|
+
- (void)setRenderPipelineState:(id <MTLRenderPipelineState>)pipelineState API_AVAILABLE(macos(10.14), macCatalyst(13.0), ios(13.0));
|
|
21
|
+
|
|
22
|
+
- (void)setVertexBuffer:(id <MTLBuffer>)buffer offset:(NSUInteger)offset atIndex:(NSUInteger)index;
|
|
23
|
+
- (void)setFragmentBuffer:(id <MTLBuffer>)buffer offset:(NSUInteger)offset atIndex:(NSUInteger)index;
|
|
24
|
+
|
|
25
|
+
/*!
|
|
26
|
+
@brief
|
|
27
|
+
sets vertex buffer at specified index with provided offset and stride.
|
|
28
|
+
only call this when the buffer-index is part of the vertexDescriptor and
|
|
29
|
+
has set its stride to `MTLBufferLayoutStrideDynamic`
|
|
30
|
+
*/
|
|
31
|
+
- (void) setVertexBuffer:(nonnull id<MTLBuffer>)buffer
|
|
32
|
+
offset:(NSUInteger)offset
|
|
33
|
+
attributeStride:(NSUInteger)stride
|
|
34
|
+
atIndex:(NSUInteger)index
|
|
35
|
+
API_AVAILABLE(macos(14.0), ios(17.0));
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- (void) drawPatches:(NSUInteger)numberOfPatchControlPoints patchStart:(NSUInteger)patchStart patchCount:(NSUInteger)patchCount patchIndexBuffer:(nullable id <MTLBuffer>)patchIndexBuffer
|
|
39
|
+
patchIndexBufferOffset:(NSUInteger)patchIndexBufferOffset instanceCount:(NSUInteger)instanceCount baseInstance:(NSUInteger)baseInstance
|
|
40
|
+
tessellationFactorBuffer:(id <MTLBuffer>)buffer tessellationFactorBufferOffset:(NSUInteger)offset tessellationFactorBufferInstanceStride:(NSUInteger)instanceStride API_AVAILABLE(tvos(14.5));
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- (void)drawIndexedPatches:(NSUInteger)numberOfPatchControlPoints patchStart:(NSUInteger)patchStart patchCount:(NSUInteger)patchCount patchIndexBuffer:(nullable id <MTLBuffer>)patchIndexBuffer
|
|
45
|
+
patchIndexBufferOffset:(NSUInteger)patchIndexBufferOffset controlPointIndexBuffer:(id <MTLBuffer>)controlPointIndexBuffer
|
|
46
|
+
controlPointIndexBufferOffset:(NSUInteger)controlPointIndexBufferOffset instanceCount:(NSUInteger)instanceCount
|
|
47
|
+
baseInstance:(NSUInteger)baseInstance tessellationFactorBuffer:(id <MTLBuffer>)buffer
|
|
48
|
+
tessellationFactorBufferOffset:(NSUInteger)offset tessellationFactorBufferInstanceStride:(NSUInteger)instanceStride API_AVAILABLE(tvos(14.5));
|
|
49
|
+
|
|
50
|
+
- (void)drawPrimitives:(MTLPrimitiveType)primitiveType vertexStart:(NSUInteger)vertexStart vertexCount:(NSUInteger)vertexCount instanceCount:(NSUInteger)instanceCount baseInstance:(NSUInteger)baseInstance;
|
|
51
|
+
- (void)drawIndexedPrimitives:(MTLPrimitiveType)primitiveType indexCount:(NSUInteger)indexCount indexType:(MTLIndexType)indexType indexBuffer:(id <MTLBuffer>)indexBuffer indexBufferOffset:(NSUInteger)indexBufferOffset instanceCount:(NSUInteger)instanceCount baseVertex:(NSInteger)baseVertex baseInstance:(NSUInteger)baseInstance;
|
|
52
|
+
|
|
53
|
+
- (void)setObjectThreadgroupMemoryLength:(NSUInteger)length atIndex:(NSUInteger)index API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
54
|
+
- (void)setObjectBuffer:(id <MTLBuffer>)buffer offset:(NSUInteger)offset atIndex:(NSUInteger)index API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
55
|
+
- (void)setMeshBuffer:(id <MTLBuffer>)buffer offset:(NSUInteger)offset atIndex:(NSUInteger)index API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
56
|
+
- (void)drawMeshThreadgroups:(MTLSize)threadgroupsPerGrid // MTLIndirectCommandTypeDrawMeshThreadgroups
|
|
57
|
+
threadsPerObjectThreadgroup:(MTLSize)threadsPerObjectThreadgroup
|
|
58
|
+
threadsPerMeshThreadgroup:(MTLSize)threadsPerMeshThreadgroup API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
59
|
+
- (void) drawMeshThreads:(MTLSize)threadsPerGrid // MTLIndirectCommandTypeDrawMeshThreads
|
|
60
|
+
threadsPerObjectThreadgroup:(MTLSize)threadsPerObjectThreadgroup
|
|
61
|
+
threadsPerMeshThreadgroup:(MTLSize)threadsPerMeshThreadgroup API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
62
|
+
- (void)setBarrier API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
63
|
+
- (void)clearBarrier API_AVAILABLE(macos(14.0), ios(17.0), tvos(18.1), visionos(2.1));
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
- (void)reset;
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@end
|
|
71
|
+
|
|
72
|
+
API_AVAILABLE(ios(13.0), macos(11.0))
|
|
73
|
+
@protocol MTLIndirectComputeCommand <NSObject>
|
|
74
|
+
- (void)setComputePipelineState:(id <MTLComputePipelineState>)pipelineState API_AVAILABLE(ios(13.0), macos(11.0));
|
|
75
|
+
|
|
76
|
+
- (void)setKernelBuffer:(id <MTLBuffer>)buffer offset:(NSUInteger)offset atIndex:(NSUInteger)index;
|
|
77
|
+
|
|
78
|
+
/*!
|
|
79
|
+
@brief
|
|
80
|
+
sets kernel buffer at specified index with provided offset and stride.
|
|
81
|
+
only call this when the buffer-index is part of the stageInputDescriptor
|
|
82
|
+
and has set its stride to `MTLBufferLayoutStrideDynamic`
|
|
83
|
+
*/
|
|
84
|
+
- (void)setKernelBuffer:(nonnull id<MTLBuffer>)buffer
|
|
85
|
+
offset:(NSUInteger)offset
|
|
86
|
+
attributeStride:(NSUInteger)stride
|
|
87
|
+
atIndex:(NSUInteger)index
|
|
88
|
+
API_AVAILABLE(macos(14.0), ios(17.0));
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
- (void)concurrentDispatchThreadgroups:(MTLSize)threadgroupsPerGrid
|
|
92
|
+
threadsPerThreadgroup:(MTLSize)threadsPerThreadgroup;
|
|
93
|
+
- (void)concurrentDispatchThreads:(MTLSize)threadsPerGrid
|
|
94
|
+
threadsPerThreadgroup:(MTLSize)threadsPerThreadgroup;
|
|
95
|
+
|
|
96
|
+
- (void)setBarrier;
|
|
97
|
+
|
|
98
|
+
- (void)clearBarrier;
|
|
99
|
+
|
|
100
|
+
- (void)setImageblockWidth:(NSUInteger)width height:(NSUInteger)height API_AVAILABLE(ios(14.0), macos(11.0));
|
|
101
|
+
|
|
102
|
+
- (void)reset;
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
- (void)setThreadgroupMemoryLength:(NSUInteger)length atIndex:(NSUInteger)index;
|
|
106
|
+
- (void)setStageInRegion:(MTLRegion)region;
|
|
107
|
+
@end
|
|
108
|
+
|
|
109
|
+
NS_ASSUME_NONNULL_END
|
|
110
|
+
|