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,322 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLAccelerationStructureCommandEncoder.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Apple, Inc. All rights reserved.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
#import <Metal/MTLTypes.h>
|
|
11
|
+
#import <Metal/MTLBuffer.h>
|
|
12
|
+
#import <Metal/MTLArgument.h>
|
|
13
|
+
#import <Metal/MTLCommandEncoder.h>
|
|
14
|
+
#import <Metal/MTLFence.h>
|
|
15
|
+
#import <Metal/MTLCommandBuffer.h>
|
|
16
|
+
#import <Metal/MTLAccelerationStructure.h>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
20
|
+
|
|
21
|
+
API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0))
|
|
22
|
+
@protocol MTLAccelerationStructureCommandEncoder <MTLCommandEncoder>
|
|
23
|
+
|
|
24
|
+
/*!
|
|
25
|
+
* @brief Encode an acceleration structure build into the command buffer. All bottom-level acceleration
|
|
26
|
+
* structure builds must have completed before a top-level acceleration structure build may begin. The
|
|
27
|
+
* resulting acceleration structure will not retain any references to the input vertex buffer, instance buffer, etc.
|
|
28
|
+
*
|
|
29
|
+
* The acceleration structure build will not be completed until the command buffer has been committed
|
|
30
|
+
* and finished executing. However, it is safe to encode ray tracing work against the acceleration
|
|
31
|
+
* structure as long as the command buffers are scheduled and synchronized such that the command buffer
|
|
32
|
+
* will have completed by the time the ray tracing starts.
|
|
33
|
+
*
|
|
34
|
+
* The acceleration structure and scratch buffer must be at least the size returned by the
|
|
35
|
+
* [MTLDevice accelerationStructureSizesWithDescriptor:] query.
|
|
36
|
+
*
|
|
37
|
+
* @param accelerationStructure Acceleration structure storage to build into
|
|
38
|
+
* @param descriptor Object describing the acceleration structure to build
|
|
39
|
+
* @param scratchBuffer Scratch buffer to use while building the acceleration structure. The
|
|
40
|
+
* contents may be overwritten and are undefined after the build has
|
|
41
|
+
* started/completed.
|
|
42
|
+
* @param scratchBufferOffset Offset into the scratch buffer
|
|
43
|
+
*/
|
|
44
|
+
- (void)buildAccelerationStructure:(id <MTLAccelerationStructure>)accelerationStructure
|
|
45
|
+
descriptor:(MTLAccelerationStructureDescriptor *)descriptor
|
|
46
|
+
scratchBuffer:(id <MTLBuffer>)scratchBuffer
|
|
47
|
+
scratchBufferOffset:(NSUInteger)scratchBufferOffset;
|
|
48
|
+
|
|
49
|
+
/*!
|
|
50
|
+
* @brief Encode an acceleration structure refit into the command buffer. Refitting can be used to
|
|
51
|
+
* update the acceleration structure when geometry changes and is much faster than rebuilding from
|
|
52
|
+
* scratch. However, the quality of the acceleration structure and the subsequent ray tracing
|
|
53
|
+
* performance will degrade depending on how much the geometry changes.
|
|
54
|
+
*
|
|
55
|
+
* Refitting can not be used after certain changes, such as adding or removing geometry. Acceleration
|
|
56
|
+
* structures can be refit in place by specifying the same source and destination acceleration structures
|
|
57
|
+
* or by providing a nil destination acceleration structure. If the source and destination acceleration
|
|
58
|
+
* structures are not the same, they must not overlap in memory.
|
|
59
|
+
*
|
|
60
|
+
* The destination acceleration structure must be at least as large as the source acceleration structure,
|
|
61
|
+
* unless the source acceleration structure has been compacted, in which case the destination acceleration
|
|
62
|
+
* structure must be at least as large as the compacted size of the source acceleration structure.
|
|
63
|
+
*
|
|
64
|
+
* The scratch buffer must be at least the size returned by the accelerationStructureSizesWithDescriptor
|
|
65
|
+
* method of the MTLDevice.
|
|
66
|
+
*
|
|
67
|
+
* @param descriptor Object describing the acceleration structure to build
|
|
68
|
+
* @param sourceAccelerationStructure Acceleration structure to copy from
|
|
69
|
+
* @param destinationAccelerationStructure Acceleration structure to copy to
|
|
70
|
+
* @param scratchBuffer Scratch buffer to use while refitting the acceleration
|
|
71
|
+
* structure. The contents may be overwritten and are undefined
|
|
72
|
+
* after the refit has started/completed.
|
|
73
|
+
* @param scratchBufferOffset Offset into the scratch buffer.
|
|
74
|
+
*/
|
|
75
|
+
- (void)refitAccelerationStructure:(id <MTLAccelerationStructure>)sourceAccelerationStructure
|
|
76
|
+
descriptor:(MTLAccelerationStructureDescriptor *)descriptor
|
|
77
|
+
destination:(nullable id <MTLAccelerationStructure>)destinationAccelerationStructure
|
|
78
|
+
scratchBuffer:(nullable id <MTLBuffer>)scratchBuffer
|
|
79
|
+
scratchBufferOffset:(NSUInteger)scratchBufferOffset;
|
|
80
|
+
|
|
81
|
+
/*!
|
|
82
|
+
* @brief Encode an acceleration structure refit into the command buffer. Refitting can be used to
|
|
83
|
+
* update the acceleration structure when geometry changes and is much faster than rebuilding from
|
|
84
|
+
* scratch. However, the quality of the acceleration structure and the subsequent ray tracing
|
|
85
|
+
* performance will degrade depending on how much the geometry changes.
|
|
86
|
+
*
|
|
87
|
+
* Refitting can not be used after certain changes, such as adding or removing geometry. Acceleration
|
|
88
|
+
* structures can be refit in place by specifying the same source and destination acceleration structures
|
|
89
|
+
* or by providing a nil destination acceleration structure. If the source and destination acceleration
|
|
90
|
+
* structures are not the same, they must not overlap in memory.
|
|
91
|
+
*
|
|
92
|
+
* The destination acceleration structure must be at least as large as the source acceleration structure,
|
|
93
|
+
* unless the source acceleration structure has been compacted, in which case the destination acceleration
|
|
94
|
+
* structure must be at least as large as the compacted size of the source acceleration structure.
|
|
95
|
+
*
|
|
96
|
+
* The scratch buffer must be at least the size returned by the accelerationStructureSizesWithDescriptor
|
|
97
|
+
* method of the MTLDevice.
|
|
98
|
+
*
|
|
99
|
+
* @param descriptor Object describing the acceleration structure to build
|
|
100
|
+
* @param sourceAccelerationStructure Acceleration structure to copy from
|
|
101
|
+
* @param destinationAccelerationStructure Acceleration structure to copy to
|
|
102
|
+
* @param scratchBuffer Scratch buffer to use while refitting the acceleration
|
|
103
|
+
* structure. The contents may be overwritten and are undefined
|
|
104
|
+
* after the refit has started/completed.
|
|
105
|
+
* @param scratchBufferOffset Offset into the scratch buffer.
|
|
106
|
+
* @param options Options specifying the elements of the acceleration structure to refit.
|
|
107
|
+
*/
|
|
108
|
+
- (void)refitAccelerationStructure:(id <MTLAccelerationStructure>)sourceAccelerationStructure
|
|
109
|
+
descriptor:(MTLAccelerationStructureDescriptor *)descriptor
|
|
110
|
+
destination:(nullable id <MTLAccelerationStructure>)destinationAccelerationStructure
|
|
111
|
+
scratchBuffer:(nullable id <MTLBuffer>)scratchBuffer
|
|
112
|
+
scratchBufferOffset:(NSUInteger)scratchBufferOffset
|
|
113
|
+
options:(MTLAccelerationStructureRefitOptions)options
|
|
114
|
+
API_AVAILABLE(macos(13.0), ios(16.0));
|
|
115
|
+
|
|
116
|
+
/*!
|
|
117
|
+
* @brief Copy an acceleration structure. The source and destination acceleration structures must not
|
|
118
|
+
* overlap in memory. If this is a top level acceleration structure, references to bottom level
|
|
119
|
+
* acceleration structures will be preserved.
|
|
120
|
+
*
|
|
121
|
+
* The destination acceleration structure must be at least as large as the source acceleration structure,
|
|
122
|
+
* unless the source acceleration structure has been compacted, in which case the destination acceleration
|
|
123
|
+
* structure must be at least as large as the compacted size of the source acceleration structure.
|
|
124
|
+
*
|
|
125
|
+
* @param sourceAccelerationStructure Acceleration structure to copy from
|
|
126
|
+
* @param destinationAccelerationStructure Acceleration structure to copy to
|
|
127
|
+
*/
|
|
128
|
+
- (void)copyAccelerationStructure:(id <MTLAccelerationStructure>)sourceAccelerationStructure
|
|
129
|
+
toAccelerationStructure:(id <MTLAccelerationStructure>)destinationAccelerationStructure;
|
|
130
|
+
|
|
131
|
+
/*!
|
|
132
|
+
* @brief Compute the compacted size for an acceleration structure and write it into a buffer.
|
|
133
|
+
*
|
|
134
|
+
* This size is potentially smaller than the source acceleration structure. To perform compaction,
|
|
135
|
+
* read this size from the buffer once the command buffer has completed and use it to allocate a
|
|
136
|
+
* smaller acceleration structure. Then create another encoder and call the
|
|
137
|
+
* copyAndCompactAccelerationStructure method.
|
|
138
|
+
*
|
|
139
|
+
* @param accelerationStructure Source acceleration structure
|
|
140
|
+
* @param buffer Destination size buffer. The compacted size will be written as a 32 bit
|
|
141
|
+
* unsigned integer representing the compacted size in bytes.
|
|
142
|
+
* @param offset Offset into the size buffer
|
|
143
|
+
*/
|
|
144
|
+
- (void)writeCompactedAccelerationStructureSize:(id <MTLAccelerationStructure>)accelerationStructure
|
|
145
|
+
toBuffer:(id <MTLBuffer>)buffer
|
|
146
|
+
offset:(NSUInteger)offset;
|
|
147
|
+
|
|
148
|
+
/*!
|
|
149
|
+
* @brief Compute the compacted size for an acceleration structure and write it into a buffer.
|
|
150
|
+
*
|
|
151
|
+
* This size is potentially smaller than the source acceleration structure. To perform compaction,
|
|
152
|
+
* read this size from the buffer once the command buffer has completed and use it to allocate a
|
|
153
|
+
* smaller acceleration structure. Then create another encoder and call the
|
|
154
|
+
* copyAndCompactAccelerationStructure method.
|
|
155
|
+
*
|
|
156
|
+
* @param accelerationStructure Source acceleration structure
|
|
157
|
+
* @param buffer Destination size buffer. The compacted size will be written as either
|
|
158
|
+
* a 32 bit or 64 bit value depending on the sizeDataType argument
|
|
159
|
+
* unsigned integer representing the compacted size in bytes.
|
|
160
|
+
* @param offset Offset into the size buffer
|
|
161
|
+
* @param sizeDataType Data type of the size to write into the buffer. Must be either
|
|
162
|
+
* MTLDataTypeUInt (32 bit) or MTLDataTypeULong (64 bit)
|
|
163
|
+
*/
|
|
164
|
+
- (void)writeCompactedAccelerationStructureSize:(id <MTLAccelerationStructure>)accelerationStructure
|
|
165
|
+
toBuffer:(id <MTLBuffer>)buffer
|
|
166
|
+
offset:(NSUInteger)offset
|
|
167
|
+
sizeDataType:(MTLDataType)sizeDataType API_AVAILABLE(macos(12.0), ios(15.0), tvos(16.0));
|
|
168
|
+
|
|
169
|
+
/*!
|
|
170
|
+
* @brief Copy and compact an acceleration structure. The source and destination acceleration structures
|
|
171
|
+
* must not overlap in memory. If this is a top level acceleration structure, references to bottom level
|
|
172
|
+
* acceleration structures will be preserved.
|
|
173
|
+
*
|
|
174
|
+
* The destination acceleration structure must be at least as large as the compacted size of the source
|
|
175
|
+
* acceleration structure, which is computed by the writeCompactedAccelerationStructureSize method.
|
|
176
|
+
*
|
|
177
|
+
* @param sourceAccelerationStructure Acceleration structure to copy and compact
|
|
178
|
+
* @param destinationAccelerationStructure Acceleration structure to copy to
|
|
179
|
+
*/
|
|
180
|
+
- (void)copyAndCompactAccelerationStructure:(id <MTLAccelerationStructure>)sourceAccelerationStructure
|
|
181
|
+
toAccelerationStructure:(id <MTLAccelerationStructure>)destinationAccelerationStructure;
|
|
182
|
+
|
|
183
|
+
/*!
|
|
184
|
+
@method updateFence:
|
|
185
|
+
@abstract Update the fence to capture all GPU work so far enqueued by this encoder.
|
|
186
|
+
@discussion The fence is updated at build submission to maintain global order and prevent deadlock.
|
|
187
|
+
Drivers may delay fence updates until the end of the encoder. Drivers may also wait on fences at the beginning of an encoder. It is therefore illegal to wait on a fence after it has been updated in the same encoder.
|
|
188
|
+
*/
|
|
189
|
+
- (void)updateFence:(id <MTLFence>)fence;
|
|
190
|
+
|
|
191
|
+
/*!
|
|
192
|
+
@method waitForFence:
|
|
193
|
+
@abstract Prevent further GPU work until the fence is reached.
|
|
194
|
+
@discussion The fence is evaluated at build submission to maintain global order and prevent deadlock.
|
|
195
|
+
Drivers may delay fence updates until the end of the encoder. Drivers may also wait on fences at the beginning of an encoder. It is therefore illegal to wait on a fence after it has been updated in the same encoder.
|
|
196
|
+
*/
|
|
197
|
+
- (void)waitForFence:(id <MTLFence>)fence;
|
|
198
|
+
|
|
199
|
+
/*!
|
|
200
|
+
* @method useResource:usage:
|
|
201
|
+
* @abstract Declare that a resource may be accessed by the command encoder through an argument buffer
|
|
202
|
+
*
|
|
203
|
+
* @discussion For tracked MTLResources, this method protects against data hazards. This method must be called before encoding any acceleration structure commands which may access the resource through an argument buffer.
|
|
204
|
+
* @warning Prior to iOS 13, macOS 10.15, this method does not protect against data hazards. If you are deploying to older versions of macOS or iOS, use fences to ensure data hazards are resolved.
|
|
205
|
+
*/
|
|
206
|
+
- (void)useResource:(id <MTLResource>)resource usage:(MTLResourceUsage)usage;
|
|
207
|
+
|
|
208
|
+
/*!
|
|
209
|
+
* @method useResources:count:usage:
|
|
210
|
+
* @abstract Declare that an array of resources may be accessed through an argument buffer by the command encoder
|
|
211
|
+
* @discussion For tracked MTL Resources, this method protects against data hazards. This method must be called before encoding any acceleration structure commands which may access the resources through an argument buffer.
|
|
212
|
+
* @warning Prior to iOS 13, macOS 10.15, this method does not protect against data hazards. If you are deploying to older versions of macOS or iOS, use fences to ensure data hazards are resolved.
|
|
213
|
+
*/
|
|
214
|
+
- (void)useResources:(const id <MTLResource> __nonnull[__nonnull])resources count:(NSUInteger)count usage:(MTLResourceUsage)usage;
|
|
215
|
+
|
|
216
|
+
/*!
|
|
217
|
+
* @method useHeap:
|
|
218
|
+
* @abstract Declare that the resources allocated from a heap may be accessed as readonly by the encoder through an argument buffer
|
|
219
|
+
* @discussion For tracked MTLHeaps, this method protects against data hazards. This method must be called before encoding any acceleration structure commands which may access the resources allocated from the heap through an argument buffer. This method may cause all of the color attachments allocated from the heap to become decompressed. Therefore, it is recommended that the useResource:usage: or useResources:count:usage: methods be used for color attachments instead, with a minimal (i.e. read-only) usage.
|
|
220
|
+
* @warning Prior to iOS 13, macOS 10.15, this method does not protect against data hazards. If you are deploying to older versions of macOS or iOS, use fences to ensure data hazards are resolved.
|
|
221
|
+
*/
|
|
222
|
+
- (void)useHeap:(id <MTLHeap>)heap;
|
|
223
|
+
|
|
224
|
+
/*!
|
|
225
|
+
* @method useHeaps:count:
|
|
226
|
+
* @abstract Declare that the resources allocated from an array of heaps may be accessed as readonly by the encoder through an argument buffer
|
|
227
|
+
* @discussion For tracked MTLHeaps, this method protects against data hazards. This method must be called before encoding any acceleration structure commands which may access the resources allocated from the heaps through an argument buffer. This method may cause all of the color attachments allocated from the heaps to become decompressed. Therefore, it is recommended that the useResource:usage: or useResources:count:usage: methods be used for color attachments instead, with a minimal (i.e. read-only) usage.
|
|
228
|
+
* @warning Prior to iOS 13, macOS 10.15, this method does not protect against data hazards. If you are deploying to older versions of macOS or iOS, use fences to ensure data hazards are resolved.
|
|
229
|
+
*/
|
|
230
|
+
- (void)useHeaps:(const id <MTLHeap> __nonnull[__nonnull])heaps count:(NSUInteger)count;
|
|
231
|
+
|
|
232
|
+
/*!
|
|
233
|
+
@method sampleCountersInBuffer:atSampleIndex:withBarrier:
|
|
234
|
+
@abstract Sample hardware counters at this point in the acceleration structure
|
|
235
|
+
encoder and store the counter sample into the sample buffer at the specified index.
|
|
236
|
+
@param sampleBuffer The sample buffer to sample into
|
|
237
|
+
@param sampleIndex The index into the counter buffer to write the sample
|
|
238
|
+
@param barrier Insert a barrier before taking the sample. Passing
|
|
239
|
+
YES will ensure that all work encoded before this operation in the encoder is
|
|
240
|
+
complete but does not isolate the work with respect to other encoders. Passing
|
|
241
|
+
NO will allow the sample to be taken concurrently with other operations in this
|
|
242
|
+
encoder.
|
|
243
|
+
In general, passing YES will lead to more repeatable counter results but
|
|
244
|
+
may negatively impact performance. Passing NO will generally be higher performance
|
|
245
|
+
but counter results may not be repeatable.
|
|
246
|
+
*/
|
|
247
|
+
-(void)sampleCountersInBuffer:(id<MTLCounterSampleBuffer>)sampleBuffer
|
|
248
|
+
atSampleIndex:(NSUInteger)sampleIndex
|
|
249
|
+
withBarrier:(BOOL)barrier API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0));
|
|
250
|
+
|
|
251
|
+
@end
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
|
|
255
|
+
@interface MTLAccelerationStructurePassSampleBufferAttachmentDescriptor : NSObject<NSCopying>
|
|
256
|
+
/*!
|
|
257
|
+
@property sampleBuffer
|
|
258
|
+
@abstract The sample buffer to store samples for the acceleration structure pass defined samples.
|
|
259
|
+
If sampleBuffer is non-nil, the sample indices will be used to store samples into
|
|
260
|
+
the sample buffer. If no sample buffer is provided, no samples will be taken.
|
|
261
|
+
If any of the sample indices are specified as MTLCounterDontSample, no sample
|
|
262
|
+
will be taken for that action.
|
|
263
|
+
*/
|
|
264
|
+
@property (nullable, nonatomic, retain) id<MTLCounterSampleBuffer> sampleBuffer;
|
|
265
|
+
|
|
266
|
+
/*!
|
|
267
|
+
@property startOfEncoderSampleIndex
|
|
268
|
+
@abstract The sample index to use to store the sample taken at the start of
|
|
269
|
+
command encoder processing. Setting the value to MTLCounterDontSample will cause
|
|
270
|
+
this sample to be omitted.
|
|
271
|
+
@discussion On devices where MTLCounterSamplingPointAtStageBoundary is unsupported,
|
|
272
|
+
this sample index is invalid and must be set to MTLCounterDontSample or creation of an
|
|
273
|
+
acceleration structure pass will fail.
|
|
274
|
+
*/
|
|
275
|
+
@property (nonatomic) NSUInteger startOfEncoderSampleIndex;
|
|
276
|
+
/*!
|
|
277
|
+
@property endOfEncoderSampleIndex
|
|
278
|
+
@abstract The sample index to use to store the sample taken at the end of
|
|
279
|
+
command encoder processing. Setting the value to MTLCounterDontSample will cause
|
|
280
|
+
this sample to be omitted.
|
|
281
|
+
@discussion On devices where MTLCounterSamplingPointAtStageBoundary is unsupported,
|
|
282
|
+
this sample index is invalid and must be set to MTLCounterDontSample or creation of an
|
|
283
|
+
acceleration structure pass will fail.
|
|
284
|
+
*/
|
|
285
|
+
@property (nonatomic) NSUInteger endOfEncoderSampleIndex;
|
|
286
|
+
@end
|
|
287
|
+
|
|
288
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
|
|
289
|
+
@interface MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray : NSObject
|
|
290
|
+
|
|
291
|
+
/* Individual attachment state access */
|
|
292
|
+
- (MTLAccelerationStructurePassSampleBufferAttachmentDescriptor *)objectAtIndexedSubscript:(NSUInteger)attachmentIndex;
|
|
293
|
+
|
|
294
|
+
/* This always uses 'copy' semantics. It is safe to set the attachment state at any legal index to nil, which resets that attachment descriptor state to default values. */
|
|
295
|
+
- (void)setObject:(nullable MTLAccelerationStructurePassSampleBufferAttachmentDescriptor *)attachment atIndexedSubscript:(NSUInteger)attachmentIndex;
|
|
296
|
+
|
|
297
|
+
@end
|
|
298
|
+
|
|
299
|
+
/*!
|
|
300
|
+
@class MTLAccelerationStructurePassDescriptor
|
|
301
|
+
@abstract MTLAccelerationStructurePassDescriptor represents a collection of attachments to be used to create a concrete acceleration structure encoder.
|
|
302
|
+
*/
|
|
303
|
+
MTL_EXPORT API_AVAILABLE(macos(13.0), ios(16.0))
|
|
304
|
+
@interface MTLAccelerationStructurePassDescriptor : NSObject <NSCopying>
|
|
305
|
+
|
|
306
|
+
/*!
|
|
307
|
+
@method accelerationStructurePassDescriptor
|
|
308
|
+
@abstract Create an autoreleased default acceleration structure pass descriptor
|
|
309
|
+
*/
|
|
310
|
+
+ (MTLAccelerationStructurePassDescriptor *)accelerationStructurePassDescriptor;
|
|
311
|
+
|
|
312
|
+
/*!
|
|
313
|
+
@property sampleBufferAttachments
|
|
314
|
+
@abstract An array of sample buffers and associated sample indices.
|
|
315
|
+
*/
|
|
316
|
+
@property (readonly) MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray * sampleBufferAttachments;
|
|
317
|
+
|
|
318
|
+
@end
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
NS_ASSUME_NONNULL_END
|
|
322
|
+
|
package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
#ifdef __METAL_VERSION__
|
|
2
|
+
#import <metal_stdlib>
|
|
3
|
+
|
|
4
|
+
typedef metal::packed_float3 MTLPackedFloat3;
|
|
5
|
+
typedef metal::packed_float4 MTLPackedFloatQuaternion;
|
|
6
|
+
#else
|
|
7
|
+
#include <math.h>
|
|
8
|
+
#include <stdint.h>
|
|
9
|
+
|
|
10
|
+
#ifndef _WIN32
|
|
11
|
+
#import <Metal/MTLDefines.h>
|
|
12
|
+
#else
|
|
13
|
+
#include <Metal/MTLDefines.h>
|
|
14
|
+
#endif // _WIN32
|
|
15
|
+
|
|
16
|
+
#include <Metal/MTL4BufferRange.h>
|
|
17
|
+
|
|
18
|
+
typedef struct _MTLPackedFloat3 {
|
|
19
|
+
union {
|
|
20
|
+
struct {
|
|
21
|
+
float x;
|
|
22
|
+
float y;
|
|
23
|
+
float z;
|
|
24
|
+
};
|
|
25
|
+
float elements[3];
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
#ifdef __cplusplus
|
|
29
|
+
_MTLPackedFloat3()
|
|
30
|
+
: x(0.0f), y(0.0f), z(0.0f)
|
|
31
|
+
{
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_MTLPackedFloat3(float x, float y, float z)
|
|
35
|
+
: x(x), y(y), z(z)
|
|
36
|
+
{
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
float & operator[](int idx) {
|
|
40
|
+
return elements[idx];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const float & operator[](int idx) const {
|
|
44
|
+
return elements[idx];
|
|
45
|
+
}
|
|
46
|
+
#endif
|
|
47
|
+
} MTLPackedFloat3;
|
|
48
|
+
|
|
49
|
+
MTL_INLINE MTLPackedFloat3 MTLPackedFloat3Make(float x, float y, float z)
|
|
50
|
+
{
|
|
51
|
+
MTLPackedFloat3 packedFloat3;
|
|
52
|
+
packedFloat3.x = x;
|
|
53
|
+
packedFloat3.y = y;
|
|
54
|
+
packedFloat3.z = z;
|
|
55
|
+
return packedFloat3;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
typedef struct MTLPackedFloatQuaternion {
|
|
59
|
+
float x;
|
|
60
|
+
float y;
|
|
61
|
+
float z;
|
|
62
|
+
float w;
|
|
63
|
+
|
|
64
|
+
#ifdef __cplusplus
|
|
65
|
+
MTLPackedFloatQuaternion()
|
|
66
|
+
: x(0.0f), y(0.0f), z(0.0f), w(1.0f)
|
|
67
|
+
{
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
MTLPackedFloatQuaternion(float x, float y, float z, float w)
|
|
71
|
+
: x(x), y(y), z(z), w(w)
|
|
72
|
+
{
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
float & operator[](int idx) {
|
|
76
|
+
float *elements = &x;
|
|
77
|
+
|
|
78
|
+
return elements[idx];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const float & operator[](int idx) const {
|
|
82
|
+
const float *elements = &x;
|
|
83
|
+
|
|
84
|
+
return elements[idx];
|
|
85
|
+
}
|
|
86
|
+
#endif
|
|
87
|
+
} MTLPackedFloatQuaternion;
|
|
88
|
+
|
|
89
|
+
MTL_INLINE MTLPackedFloatQuaternion MTLPackedFloatQuaternionMake(float x, float y, float z, float w)
|
|
90
|
+
{
|
|
91
|
+
MTLPackedFloatQuaternion packedQuaternion;
|
|
92
|
+
packedQuaternion.x = x;
|
|
93
|
+
packedQuaternion.y = y;
|
|
94
|
+
packedQuaternion.z = z;
|
|
95
|
+
packedQuaternion.w = w;
|
|
96
|
+
return packedQuaternion;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#endif
|
|
100
|
+
|
|
101
|
+
typedef struct _MTLPackedFloat4x3 {
|
|
102
|
+
MTLPackedFloat3 columns[4];
|
|
103
|
+
|
|
104
|
+
#ifdef __cplusplus
|
|
105
|
+
_MTLPackedFloat4x3() {
|
|
106
|
+
columns[0] = MTLPackedFloat3(0.0f, 0.0f, 0.0f);
|
|
107
|
+
columns[1] = MTLPackedFloat3(0.0f, 0.0f, 0.0f);
|
|
108
|
+
columns[2] = MTLPackedFloat3(0.0f, 0.0f, 0.0f);
|
|
109
|
+
columns[3] = MTLPackedFloat3(0.0f, 0.0f, 0.0f);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
_MTLPackedFloat4x3(MTLPackedFloat3 column0, MTLPackedFloat3 column1, MTLPackedFloat3 column2, MTLPackedFloat3 column3) {
|
|
113
|
+
columns[0] = column0;
|
|
114
|
+
columns[1] = column1;
|
|
115
|
+
columns[2] = column2;
|
|
116
|
+
columns[3] = column3;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
#ifndef __METAL_VERSION__
|
|
120
|
+
MTLPackedFloat3 & operator[](int idx) {
|
|
121
|
+
return columns[idx];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const MTLPackedFloat3 & operator[](int idx) const {
|
|
125
|
+
return columns[idx];
|
|
126
|
+
}
|
|
127
|
+
#else
|
|
128
|
+
thread MTLPackedFloat3 & operator[](int idx) thread {
|
|
129
|
+
return columns[idx];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const thread MTLPackedFloat3 & operator[](int idx) const thread {
|
|
133
|
+
return columns[idx];
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
device MTLPackedFloat3 & operator[](int idx) device {
|
|
137
|
+
return columns[idx];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const device MTLPackedFloat3 & operator[](int idx) const device {
|
|
141
|
+
return columns[idx];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const constant MTLPackedFloat3 & operator[](int idx) const constant {
|
|
145
|
+
return columns[idx];
|
|
146
|
+
}
|
|
147
|
+
#endif
|
|
148
|
+
#endif
|
|
149
|
+
} MTLPackedFloat4x3;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @brief An axis aligned bounding box with a min and max point
|
|
153
|
+
*/
|
|
154
|
+
typedef struct _MTLAxisAlignedBoundingBox {
|
|
155
|
+
/**
|
|
156
|
+
* @brief Minimum point
|
|
157
|
+
*/
|
|
158
|
+
MTLPackedFloat3 min;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @brief Maximum point
|
|
162
|
+
*/
|
|
163
|
+
MTLPackedFloat3 max;
|
|
164
|
+
|
|
165
|
+
#ifdef __cplusplus
|
|
166
|
+
_MTLAxisAlignedBoundingBox()
|
|
167
|
+
: min(INFINITY, INFINITY, INFINITY),
|
|
168
|
+
max(-INFINITY, -INFINITY, -INFINITY)
|
|
169
|
+
{
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
#ifdef __METAL_VERSION__
|
|
173
|
+
_MTLAxisAlignedBoundingBox() threadgroup = default;
|
|
174
|
+
#endif
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
_MTLAxisAlignedBoundingBox(MTLPackedFloat3 p)
|
|
178
|
+
: min(p),
|
|
179
|
+
max(p)
|
|
180
|
+
{
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
_MTLAxisAlignedBoundingBox(MTLPackedFloat3 min, MTLPackedFloat3 max)
|
|
184
|
+
: min(min),
|
|
185
|
+
max(max)
|
|
186
|
+
{
|
|
187
|
+
}
|
|
188
|
+
#endif
|
|
189
|
+
} MTLAxisAlignedBoundingBox;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @brief A transformation represented by individual components such as translation and
|
|
193
|
+
* rotation. The rotation is represented by a quaternion, allowing for correct motion
|
|
194
|
+
* interpolation.
|
|
195
|
+
*/
|
|
196
|
+
typedef struct {
|
|
197
|
+
/**
|
|
198
|
+
* @brief The scale of the instance applied before rotation alongside shear and pivot
|
|
199
|
+
*/
|
|
200
|
+
MTLPackedFloat3 scale;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @brief The shear of the instance applied before rotation alongside scale and pivot
|
|
204
|
+
*/
|
|
205
|
+
MTLPackedFloat3 shear;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @brief Translation applied before rotation alongside scale and shear. Allows
|
|
209
|
+
* rotation to pivot around a point.
|
|
210
|
+
*/
|
|
211
|
+
MTLPackedFloat3 pivot;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @brief The rotation of the instance as a normalized quaternion. Applied after scale,
|
|
215
|
+
* shear, and pivot and before translation
|
|
216
|
+
*/
|
|
217
|
+
MTLPackedFloatQuaternion rotation;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @brief The translation of the instance. Applied after rotation. Typically contains
|
|
221
|
+
* the composition of object translation and the inverse of the pivot translation.
|
|
222
|
+
*/
|
|
223
|
+
MTLPackedFloat3 translation;
|
|
224
|
+
} MTLComponentTransform;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLAllocation.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2024 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Metal/MTLDefines.h>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/// Base class for Metal allocations.
|
|
13
|
+
///
|
|
14
|
+
/// This protocol provides a common interface for adding Metal resources to ``MTLResidencySet`` instances. Call
|
|
15
|
+
/// ``MTLResidencySet/addAllocation:`` to add a Metal resource allocation to a residency set.
|
|
16
|
+
///
|
|
17
|
+
/// <doc:simplifying-gpu-resource-management-with-residency-sets.md>
|
|
18
|
+
API_AVAILABLE(macos(15.0), ios(18.0))
|
|
19
|
+
@protocol MTLAllocation <NSObject>
|
|
20
|
+
@property (readonly) NSUInteger allocatedSize API_AVAILABLE(macos(15.0), ios(18.0));
|
|
21
|
+
@end
|
|
22
|
+
|