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,232 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLDataType.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Created by Vatsin Suchak on 3/20/25.
|
|
6
|
+
// Copyright © 2025 Apple, Inc. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef MTLDataType_h
|
|
10
|
+
#define MTLDataType_h
|
|
11
|
+
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
#import <Metal/MTLDefines.h>
|
|
14
|
+
|
|
15
|
+
/// An enumeration of the different data types in Metal.
|
|
16
|
+
typedef NS_ENUM(NSUInteger, MTLDataType) {
|
|
17
|
+
|
|
18
|
+
/// Represents no data type.
|
|
19
|
+
MTLDataTypeNone = 0,
|
|
20
|
+
|
|
21
|
+
/// Represents a struct data type.
|
|
22
|
+
MTLDataTypeStruct = 1,
|
|
23
|
+
/// Represents an array data type.
|
|
24
|
+
MTLDataTypeArray = 2,
|
|
25
|
+
|
|
26
|
+
/// Represents a data type consisting of a single floating-point value.
|
|
27
|
+
MTLDataTypeFloat = 3,
|
|
28
|
+
/// Represents a data type consisting of a vector of two floating-point values.
|
|
29
|
+
MTLDataTypeFloat2 = 4,
|
|
30
|
+
/// Represents a data type consisting of a vector of three floating-point values.
|
|
31
|
+
MTLDataTypeFloat3 = 5,
|
|
32
|
+
/// Represents a data type consisting of a vector of four floating-point values.
|
|
33
|
+
MTLDataTypeFloat4 = 6,
|
|
34
|
+
|
|
35
|
+
/// Represents a data type consisting of a 2x2 floating-point matrix.
|
|
36
|
+
MTLDataTypeFloat2x2 = 7,
|
|
37
|
+
/// Represents a data type consisting of a 2x3 floating-point matrix.
|
|
38
|
+
MTLDataTypeFloat2x3 = 8,
|
|
39
|
+
/// Represents a data type consisting of a 2x4 floating-point matrix.
|
|
40
|
+
MTLDataTypeFloat2x4 = 9,
|
|
41
|
+
|
|
42
|
+
/// Represents a data type consisting of a 3x2 floating-point matrix.
|
|
43
|
+
MTLDataTypeFloat3x2 = 10,
|
|
44
|
+
/// Represents a data type consisting of a 3x3 floating-point matrix.
|
|
45
|
+
MTLDataTypeFloat3x3 = 11,
|
|
46
|
+
/// Represents a data type consisting of a 3x4 floating-point matrix.
|
|
47
|
+
MTLDataTypeFloat3x4 = 12,
|
|
48
|
+
|
|
49
|
+
/// Represents a data type consisting of a 4x2 floating-point matrix.
|
|
50
|
+
MTLDataTypeFloat4x2 = 13,
|
|
51
|
+
/// Represents a data type consisting of a 4x3 floating-point matrix.
|
|
52
|
+
MTLDataTypeFloat4x3 = 14,
|
|
53
|
+
/// Represents a data type consisting of a 4x4 floating-point matrix.
|
|
54
|
+
MTLDataTypeFloat4x4 = 15,
|
|
55
|
+
|
|
56
|
+
/// Represents a data type consisting of a half-precision floating-point value.
|
|
57
|
+
MTLDataTypeHalf = 16,
|
|
58
|
+
/// Represents a data type consisting of a vector of two half-precision floating-point values.
|
|
59
|
+
MTLDataTypeHalf2 = 17,
|
|
60
|
+
/// Represents a data type consisting of a vector of three half-precision floating-point values.
|
|
61
|
+
MTLDataTypeHalf3 = 18,
|
|
62
|
+
/// Represents a data type consisting of a vector of four half-precision floating-point values.
|
|
63
|
+
MTLDataTypeHalf4 = 19,
|
|
64
|
+
|
|
65
|
+
/// Represents a data type consisting of a 2x2 half-precision floating-point matrix.
|
|
66
|
+
MTLDataTypeHalf2x2 = 20,
|
|
67
|
+
/// Represents a data type consisting of a 2x3 half-precision floating-point matrix.
|
|
68
|
+
MTLDataTypeHalf2x3 = 21,
|
|
69
|
+
/// Represents a data type consisting of a 2x4 half-precision floating-point matrix.
|
|
70
|
+
MTLDataTypeHalf2x4 = 22,
|
|
71
|
+
|
|
72
|
+
/// Represents a data type consisting of a 3x2 half-precision floating-point matrix.
|
|
73
|
+
MTLDataTypeHalf3x2 = 23,
|
|
74
|
+
/// Represents a data type consisting of a 3x3 half-precision floating-point matrix.
|
|
75
|
+
MTLDataTypeHalf3x3 = 24,
|
|
76
|
+
/// Represents a data type consisting of a 3x4 half-precision floating-point matrix.
|
|
77
|
+
MTLDataTypeHalf3x4 = 25,
|
|
78
|
+
|
|
79
|
+
/// Represents a data type consisting of a 4x2 half-precision floating-point matrix.
|
|
80
|
+
MTLDataTypeHalf4x2 = 26,
|
|
81
|
+
/// Represents a data type consisting of a 4x3 half-precision floating-point matrix.
|
|
82
|
+
MTLDataTypeHalf4x3 = 27,
|
|
83
|
+
/// Represents a data type consisting of a 4x4 half-precision floating-point matrix.
|
|
84
|
+
MTLDataTypeHalf4x4 = 28,
|
|
85
|
+
|
|
86
|
+
/// Represents a data type consisting of a single signed integer value.
|
|
87
|
+
MTLDataTypeInt = 29,
|
|
88
|
+
/// Represents a data type consisting of a vector of two signed integer values.
|
|
89
|
+
MTLDataTypeInt2 = 30,
|
|
90
|
+
/// Represents a data type consisting of a vector of three signed integer values.
|
|
91
|
+
MTLDataTypeInt3 = 31,
|
|
92
|
+
/// Represents a data type consisting of a vector of four signed integer values.
|
|
93
|
+
MTLDataTypeInt4 = 32,
|
|
94
|
+
|
|
95
|
+
/// Represents a data type consisting of a single unsigned integer value.
|
|
96
|
+
MTLDataTypeUInt = 33,
|
|
97
|
+
/// Represents a data type consisting of a vector of two unsigned integer values.
|
|
98
|
+
MTLDataTypeUInt2 = 34,
|
|
99
|
+
/// Represents a data type consisting of a vector of three unsigned integer values.
|
|
100
|
+
MTLDataTypeUInt3 = 35,
|
|
101
|
+
/// Represents a data type consisting of a vector of four unsigned integer values.
|
|
102
|
+
MTLDataTypeUInt4 = 36,
|
|
103
|
+
|
|
104
|
+
/// Represents a data type consisting of a single 16-bit signed integer value.
|
|
105
|
+
MTLDataTypeShort = 37,
|
|
106
|
+
/// Represents a data type consisting of a vector of two 16-bit signed integer values.
|
|
107
|
+
MTLDataTypeShort2 = 38,
|
|
108
|
+
/// Represents a data type consisting of a vector of three 16-bit signed integer values.
|
|
109
|
+
MTLDataTypeShort3 = 39,
|
|
110
|
+
/// Represents a data type consisting of a vector of three 16-bit signed integer values.
|
|
111
|
+
MTLDataTypeShort4 = 40,
|
|
112
|
+
|
|
113
|
+
/// Represents a data type consisting of a single 16-bit unsigned integer value.
|
|
114
|
+
MTLDataTypeUShort = 41,
|
|
115
|
+
/// Represents a data type consisting of a vector of two 16-bit unsigned integer values.
|
|
116
|
+
MTLDataTypeUShort2 = 42,
|
|
117
|
+
/// Represents a data type consisting of a vector of three 16-bit unsigned integer values.
|
|
118
|
+
MTLDataTypeUShort3 = 43,
|
|
119
|
+
/// Represents a data type consisting of a vector of four 16-bit unsigned integer values.
|
|
120
|
+
MTLDataTypeUShort4 = 44,
|
|
121
|
+
|
|
122
|
+
/// Represents a data type consisting of a single signed character value.
|
|
123
|
+
MTLDataTypeChar = 45,
|
|
124
|
+
/// Represents a data type consisting of a vector of two signed character values.
|
|
125
|
+
MTLDataTypeChar2 = 46,
|
|
126
|
+
/// Represents a data type consisting of a vector of three signed character values.
|
|
127
|
+
MTLDataTypeChar3 = 47,
|
|
128
|
+
/// Represents a data type consisting of a vector of four signed character values.
|
|
129
|
+
MTLDataTypeChar4 = 48,
|
|
130
|
+
|
|
131
|
+
/// Represents a data type consisting of a single unsigned character value.
|
|
132
|
+
MTLDataTypeUChar = 49,
|
|
133
|
+
/// Represents a data type consisting of a vector of two unsigned character values.
|
|
134
|
+
MTLDataTypeUChar2 = 50,
|
|
135
|
+
/// Represents a data type consisting of a vector of three unsigned character values.
|
|
136
|
+
MTLDataTypeUChar3 = 51,
|
|
137
|
+
/// Represents a data type consisting of a vector of four unsigned character values.
|
|
138
|
+
MTLDataTypeUChar4 = 52,
|
|
139
|
+
|
|
140
|
+
/// Represents a data type consisting of a single boolean value.
|
|
141
|
+
MTLDataTypeBool = 53,
|
|
142
|
+
/// Represents a data type consisting of a vector of two boolean values.
|
|
143
|
+
MTLDataTypeBool2 = 54,
|
|
144
|
+
/// Represents a data type consisting of a vector of three boolean values.
|
|
145
|
+
MTLDataTypeBool3 = 55,
|
|
146
|
+
/// Represents a data type consisting of a vector of four boolean values.
|
|
147
|
+
MTLDataTypeBool4 = 56,
|
|
148
|
+
|
|
149
|
+
/// Represents a data type corresponding to a texture object.
|
|
150
|
+
MTLDataTypeTexture API_AVAILABLE(macos(10.13), ios(11.0)) = 58,
|
|
151
|
+
/// Represents a data type corresponding to a sampler state object.
|
|
152
|
+
MTLDataTypeSampler API_AVAILABLE(macos(10.13), ios(11.0)) = 59,
|
|
153
|
+
/// Represents a data type corresponding to a pointer.
|
|
154
|
+
MTLDataTypePointer API_AVAILABLE(macos(10.13), ios(11.0)) = 60,
|
|
155
|
+
|
|
156
|
+
/// Represents an image block data type consisting of an unsigned 8-bit red channel normalized to the [0-1] range.
|
|
157
|
+
MTLDataTypeR8Unorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 62,
|
|
158
|
+
/// Represents an image block data type consisting of an signed 8-bit red channel normalized to the [0-1] range.
|
|
159
|
+
MTLDataTypeR8Snorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 63,
|
|
160
|
+
/// Represents an image block data type consisting of an unsigned 16-bit red channel normalized to the [0-1] range.
|
|
161
|
+
MTLDataTypeR16Unorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 64,
|
|
162
|
+
/// Represents an image block data type consisting of a signed 16-bit red channel normalized to the [0-1] range.
|
|
163
|
+
MTLDataTypeR16Snorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 65,
|
|
164
|
+
/// Represents an image block data type consisting of an unsigned 8-bit red channel and a unsigned 8-bit green channel, both normalized to the [0-1] range.
|
|
165
|
+
MTLDataTypeRG8Unorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 66,
|
|
166
|
+
/// Represents an image block data type consisting of a signed 8-bit red channel and a signed 8-bit green channel, both normalized to the [0-1] range.
|
|
167
|
+
MTLDataTypeRG8Snorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 67,
|
|
168
|
+
/// Represents an image block data type consisting of an unsigned 16-bit red channel and an unsigned 16-bit green channel, both normalized to the [0-1] range.
|
|
169
|
+
MTLDataTypeRG16Unorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 68,
|
|
170
|
+
/// Represents an image block data type consisting of a signed 16-bit red channel and a signed 16-bit green channel, both normalized to the [0-1] range.
|
|
171
|
+
MTLDataTypeRG16Snorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 69,
|
|
172
|
+
/// Represents an image block data type consisting of four unsigned 8-bit channels normalized to the [0-1] range.
|
|
173
|
+
MTLDataTypeRGBA8Unorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 70,
|
|
174
|
+
/// Represents an image block data type consisting of four unsigned 8-bit channels normalized to the [0-1] range and subject to gamma-correction.
|
|
175
|
+
MTLDataTypeRGBA8Unorm_sRGB API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 71,
|
|
176
|
+
/// Represents an image block data type consisting of four signed 8-bit channels normalized to the [0-1] range.
|
|
177
|
+
MTLDataTypeRGBA8Snorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 72,
|
|
178
|
+
/// Represents an image block data type consisting of four unsigned 16-bit channels normalized to the [0-1] range.
|
|
179
|
+
MTLDataTypeRGBA16Unorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 73,
|
|
180
|
+
/// Represents an image block data type consisting of four signed 16-bit channels normalized to the [0-1] range.
|
|
181
|
+
MTLDataTypeRGBA16Snorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 74,
|
|
182
|
+
/// Represents an image block data type consisting of three unsigned 10-bit channels and one 2-bit unsigned alpha channel, all normalized to the [0-1] range.
|
|
183
|
+
MTLDataTypeRGB10A2Unorm API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 75,
|
|
184
|
+
/// Represents an image block data type consisting of two 11-bit floating-point channels, and one 10-bit floating-point blue channel.
|
|
185
|
+
MTLDataTypeRG11B10Float API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 76,
|
|
186
|
+
/// Represents an image block data type consisting of three 9-bit floating-point channels, and one 5-bit floating-point exponent.
|
|
187
|
+
MTLDataTypeRGB9E5Float API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(11.0), tvos(14.5)) = 77,
|
|
188
|
+
/// Represents a data type corresponding to a render pipeline state object.
|
|
189
|
+
MTLDataTypeRenderPipeline API_AVAILABLE(macos(10.14), ios(13.0)) = 78,
|
|
190
|
+
/// Represents a data type corresponding to a compute pipeline state object.
|
|
191
|
+
MTLDataTypeComputePipeline API_AVAILABLE(macos(11.0), macCatalyst(14.0), ios(13.0)) = 79,
|
|
192
|
+
/// Represents a data type corresponding to an indirect command buffer object.
|
|
193
|
+
MTLDataTypeIndirectCommandBuffer API_AVAILABLE(macos(10.14), ios(12.0)) = 80,
|
|
194
|
+
/// Represents a data type consisting of a signed long integer value.
|
|
195
|
+
MTLDataTypeLong API_AVAILABLE(macos(12.0), ios(14.0)) = 81,
|
|
196
|
+
/// Represents a data type consisting of a vector of two signed long integer values.
|
|
197
|
+
MTLDataTypeLong2 API_AVAILABLE(macos(12.0), ios(14.0)) = 82,
|
|
198
|
+
/// Represents a data type consisting of a vector of three signed long integer values.
|
|
199
|
+
MTLDataTypeLong3 API_AVAILABLE(macos(12.0), ios(14.0)) = 83,
|
|
200
|
+
/// Represents a data type consisting of a vector of four signed long integer values.
|
|
201
|
+
MTLDataTypeLong4 API_AVAILABLE(macos(12.0), ios(14.0)) = 84,
|
|
202
|
+
|
|
203
|
+
/// Represents a data type consisting of an unsigned long integer value.
|
|
204
|
+
MTLDataTypeULong API_AVAILABLE(macos(12.0), ios(14.0)) = 85,
|
|
205
|
+
/// Represents a data type consisting of a vector two unsigned long integer values.
|
|
206
|
+
MTLDataTypeULong2 API_AVAILABLE(macos(12.0), ios(14.0)) = 86,
|
|
207
|
+
/// Represents a data type consisting of a vector three unsigned long integer values.
|
|
208
|
+
MTLDataTypeULong3 API_AVAILABLE(macos(12.0), ios(14.0)) = 87,
|
|
209
|
+
/// Represents a data type consisting of a vector four unsigned long integer values.
|
|
210
|
+
MTLDataTypeULong4 API_AVAILABLE(macos(12.0), ios(14.0)) = 88,
|
|
211
|
+
/// Represents a data type corresponding to a visible function table object.
|
|
212
|
+
MTLDataTypeVisibleFunctionTable API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 115,
|
|
213
|
+
/// Represents a data type corresponding to an intersection function table object.
|
|
214
|
+
MTLDataTypeIntersectionFunctionTable API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 116,
|
|
215
|
+
/// Represents a data type corresponding to a primitive acceleration structure.
|
|
216
|
+
MTLDataTypePrimitiveAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 117,
|
|
217
|
+
/// Represents a data type corresponding to an instance acceleration structure.
|
|
218
|
+
MTLDataTypeInstanceAccelerationStructure API_AVAILABLE(macos(11.0), ios(14.0), tvos(16.0)) = 118,
|
|
219
|
+
/// Represents a data type consisting of a single BFloat value.
|
|
220
|
+
MTLDataTypeBFloat API_AVAILABLE(macos(14.0), ios(17.0)) = 121,
|
|
221
|
+
/// Represents a data type consisting of a vector two BFloat values.
|
|
222
|
+
MTLDataTypeBFloat2 API_AVAILABLE(macos(14.0), ios(17.0)) = 122,
|
|
223
|
+
/// Represents a data type consisting of a vector three BFloat values.
|
|
224
|
+
MTLDataTypeBFloat3 API_AVAILABLE(macos(14.0), ios(17.0)) = 123,
|
|
225
|
+
/// Represents a data type consisting of a vector four BFloat values.
|
|
226
|
+
MTLDataTypeBFloat4 API_AVAILABLE(macos(14.0), ios(17.0)) = 124,
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
} API_AVAILABLE(macos(10.11), ios(8.0));
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
#endif /* MTLDataType_h */
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLDefines.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <os/availability.h>
|
|
9
|
+
#import <TargetConditionals.h>
|
|
10
|
+
|
|
11
|
+
#define MTL_EXPORT __attribute__((visibility ("default")))
|
|
12
|
+
#define MTL_INTERN __attribute__((visibility ("hidden")))
|
|
13
|
+
|
|
14
|
+
#ifdef __cplusplus
|
|
15
|
+
#define MTL_EXTERN extern "C" MTL_EXPORT
|
|
16
|
+
#else
|
|
17
|
+
#define MTL_EXTERN extern MTL_EXPORT
|
|
18
|
+
#endif
|
|
19
|
+
|
|
20
|
+
#ifdef __cplusplus
|
|
21
|
+
#define MTL_EXTERN_NO_EXPORT extern "C" MTL_INTERN
|
|
22
|
+
#else
|
|
23
|
+
#define MTL_EXTERN_NO_EXPORT extern MTL_INTERN
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
/* Definition of 'MTL_INLINE'. */
|
|
27
|
+
|
|
28
|
+
#if !defined(MTL_INLINE)
|
|
29
|
+
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
30
|
+
# define MTL_INLINE static inline
|
|
31
|
+
# elif defined(__cplusplus)
|
|
32
|
+
# define MTL_INLINE static inline
|
|
33
|
+
# elif defined(__GNUC__)
|
|
34
|
+
# define MTL_INLINE static __inline__
|
|
35
|
+
# else
|
|
36
|
+
# define MTL_INLINE static
|
|
37
|
+
# endif
|
|
38
|
+
#endif
|
|
39
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MTLDepthStencil.h
|
|
3
|
+
// Metal
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Metal/MTLDefines.h>
|
|
9
|
+
#import <Metal/MTLDevice.h>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
typedef NS_ENUM(NSUInteger, MTLCompareFunction) {
|
|
14
|
+
MTLCompareFunctionNever = 0,
|
|
15
|
+
MTLCompareFunctionLess = 1,
|
|
16
|
+
MTLCompareFunctionEqual = 2,
|
|
17
|
+
MTLCompareFunctionLessEqual = 3,
|
|
18
|
+
MTLCompareFunctionGreater = 4,
|
|
19
|
+
MTLCompareFunctionNotEqual = 5,
|
|
20
|
+
MTLCompareFunctionGreaterEqual = 6,
|
|
21
|
+
MTLCompareFunctionAlways = 7,
|
|
22
|
+
} API_AVAILABLE(macos(10.11), ios(8.0));
|
|
23
|
+
|
|
24
|
+
typedef NS_ENUM(NSUInteger, MTLStencilOperation) {
|
|
25
|
+
MTLStencilOperationKeep = 0,
|
|
26
|
+
MTLStencilOperationZero = 1,
|
|
27
|
+
MTLStencilOperationReplace = 2,
|
|
28
|
+
MTLStencilOperationIncrementClamp = 3,
|
|
29
|
+
MTLStencilOperationDecrementClamp = 4,
|
|
30
|
+
MTLStencilOperationInvert = 5,
|
|
31
|
+
MTLStencilOperationIncrementWrap = 6,
|
|
32
|
+
MTLStencilOperationDecrementWrap = 7,
|
|
33
|
+
} API_AVAILABLE(macos(10.11), ios(8.0));
|
|
34
|
+
|
|
35
|
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
|
|
36
|
+
@interface MTLStencilDescriptor : NSObject <NSCopying>
|
|
37
|
+
|
|
38
|
+
@property (nonatomic) MTLCompareFunction stencilCompareFunction;
|
|
39
|
+
|
|
40
|
+
/*! Stencil is tested first. stencilFailureOperation declares how the stencil buffer is updated when the stencil test fails. */
|
|
41
|
+
@property (nonatomic) MTLStencilOperation stencilFailureOperation;
|
|
42
|
+
|
|
43
|
+
/*! If stencil passes, depth is tested next. Declare what happens when the depth test fails. */
|
|
44
|
+
@property (nonatomic) MTLStencilOperation depthFailureOperation;
|
|
45
|
+
|
|
46
|
+
/*! If both the stencil and depth tests pass, declare how the stencil buffer is updated. */
|
|
47
|
+
@property (nonatomic) MTLStencilOperation depthStencilPassOperation;
|
|
48
|
+
|
|
49
|
+
@property (nonatomic) uint32_t readMask;
|
|
50
|
+
@property (nonatomic) uint32_t writeMask;
|
|
51
|
+
|
|
52
|
+
@end
|
|
53
|
+
|
|
54
|
+
MTL_EXPORT API_AVAILABLE(macos(10.11), ios(8.0))
|
|
55
|
+
@interface MTLDepthStencilDescriptor : NSObject <NSCopying>
|
|
56
|
+
|
|
57
|
+
/* Defaults to MTLCompareFuncAlways, which effectively skips the depth test */
|
|
58
|
+
@property (nonatomic) MTLCompareFunction depthCompareFunction;
|
|
59
|
+
|
|
60
|
+
/* Defaults to NO, so no depth writes are performed */
|
|
61
|
+
@property (nonatomic, getter=isDepthWriteEnabled) BOOL depthWriteEnabled;
|
|
62
|
+
|
|
63
|
+
/* Separate stencil state for front and back state. Both front and back can be made to track the same state by assigning the same MTLStencilDescriptor to both. */
|
|
64
|
+
@property (copy, nonatomic, null_resettable) MTLStencilDescriptor *frontFaceStencil;
|
|
65
|
+
@property (copy, nonatomic, null_resettable) MTLStencilDescriptor *backFaceStencil;
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
@property label
|
|
69
|
+
@abstract A string to help identify the created object.
|
|
70
|
+
*/
|
|
71
|
+
@property (nullable, copy, nonatomic) NSString *label;
|
|
72
|
+
|
|
73
|
+
@end
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/* Device-specific compiled depth/stencil state object */
|
|
77
|
+
API_AVAILABLE(macos(10.11), ios(8.0)) NS_SWIFT_SENDABLE
|
|
78
|
+
@protocol MTLDepthStencilState <NSObject>
|
|
79
|
+
|
|
80
|
+
/*!
|
|
81
|
+
@property label
|
|
82
|
+
@abstract A string to help identify this object.
|
|
83
|
+
*/
|
|
84
|
+
@property (nullable, readonly) NSString *label;
|
|
85
|
+
|
|
86
|
+
/*!
|
|
87
|
+
@property device
|
|
88
|
+
@abstract The device this resource was created against. This resource can only be used with this device.
|
|
89
|
+
*/
|
|
90
|
+
@property (readonly) id <MTLDevice> device;
|
|
91
|
+
|
|
92
|
+
@end
|
|
93
|
+
NS_ASSUME_NONNULL_END
|