Symbols: 32.1% of Apple's iOS API (1142 of 3560, exact) · Rows: 14: 10 ✅ 4 🟡 · iOS: 8.0+
Area: GPU · Apple: Metal · Issues: area:gpu
- Adapted: Metal on the CPU (#328).
MTLCreateSystemDefaultDevice()returns anMTLDevicenamed "isim CPU". Its resources are memory of the process, in every storage mode, and compute work runs on the CPU (isim/frameworks/Metal, Objective-C with Apple's headers inisim/sdk-src/Frameworks/Metal; Apple's Swift forms with arrays and ranges inisim/swift/overlays/Metal). - Kernels: Metal Shading Language is translated to C++ by isim's compiler (
isim/tools/mslc.py).- The C++ uses isim's
metal_stdlib(isim/sdk-src/metal/include/__isim_metal.h):- vectors as clang ext_vector types, so swizzles work, and matrices as classes;
- the math, geometric, integer, relational and packing functions;
- atomics, including
atomic_float; texture1d/texture2d/texture2d_array/texture3d/texture_buffer, with read, write and sample (nearest and bilinear filtering, the address modes, mip levels) for the 8, 16 and 32-bit color formats;- constexpr samplers,
threadgroup_barrier, and the SIMD-group functions (SIMD groups of one thread).
- Each kernel gets an entry point that binds its
[[buffer(n)]],[[texture(n)]],[[sampler(n)]]and[[threadgroup(n)]]arguments and the thread-position attributes;[[function_constant(n)]]declarations take the values ofMTLFunctionConstantValues. - clang builds the C++ into a guest dylib (
isim cc). isim buildcompiles an app's.metalfiles intodefault.metallib.dylib, next todefault.metallib, which stays isim's text format and holds the sources Core Image reads.isim metal-compileruns the same compiler.makeLibrary(source:options:)(and adefault.metallibwithout its dylib) compiles at run time through the host (runtime/host_metal.c) into the app's Caches folder. When the host has no clang, that is a compile error (MTLLibraryError.compileFailure). Apple-built metallibs (GPU code) cannot run (MTLLibraryError.unsupported).
- The C++ uses isim's
- Dispatches run on a pool of worker threads, one per CPU (up to 16) (
MTLDispatch.c). Each worker runs one threadgroup at a time, so threadgroup memory is the worker's. The threads of a group run one after another; a kernel that callsthreadgroup_barrierruns them as fibers that switch at each barrier. Command buffers run in commit order on their queue's background thread, then call their completed handlers. - Render pipelines (#329):
- Entry points: the compiler gives each
vertexfunction an entry point for one vertex. It binds[[stage_in]]from the vertex descriptor's attributes (anyMTLVertexFormat),[[vertex_id]],[[instance_id]], the base vertex and instance, and buffers, textures and samplers. It also generates an interpolation of the function's output struct ([[flat]]members are taken from the provoking vertex). - Each
fragmentfunction gets one entry point for one fragment. It binds[[stage_in]](matched to the vertex outputs by[[user(name)]], else by member name),[[position]],[[front_facing]],[[point_coord]]and[[color(n)]]inputs, and it writes[[color(n)]]and[[depth(...)]]outputs.discard_fragment()ends the fragment. - Rasterizer: isim's rasterizer (
isim/frameworks/Metal/MTLRaster.c) runs a draw in phases:- the vertex function, in parallel;
- primitive assembly, then clipping at the near and far planes and a guard band, in clip space;
- culling and winding;
- 64×64-pixel tiles in parallel, each drawing its primitives in order. Triangles use the top-left rule on a
1/256-pixel grid with perspective-correct interpolation; lines are 1 pixel wide; points are squares of their
[[point_size]].
- Each fragment then goes through the depth and stencil tests (late when the function writes the depth), the
fragment function, blending (every
MTLBlendFactorbut the dual-source ones, everyMTLBlendOperation), the write mask, and sRGB encoding on_srgbtargets. - Render passes clear and resolve their attachments. A multisample texture holds one sample per pixel, so rendering is not antialiased (adapted).
- Derivatives (
dfdx,dfdy,fwidth) are 0, and implicit-LOD sampling in fragment functions uses mip level 0. CAMetalLayerandCAMetalDisplayLinkare QuartzCore's (see QuartzCore);MTKViewandMTKTextureLoaderare MetalKit's (see MetalKit).
- Entry points: the compiler gives each
- Versus a device: no GPU.
threadExecutionWidthis 1. The supported families are Apple 1–4 and Common 1–2, the compute and render features isim has.
| API / feature | Status | iOS | Notes |
|---|---|---|---|
MTLCreateSystemDefaultDevice(), MTLDevice (name, limits, supportsFamily, queues, buffers, textures, samplers, libraries, compute and render pipelines, depth-stencil states, async variants) |
🟡 | ≤17 | adapted: the CPU ("isim CPU"); newFence returns a fence with nothing to wait for (a queue's buffers run in order; issue #365); no heaps, events, argument encoders or indirect command buffers. Tested (MetalObjCTest, MetalRenderObjCTest, HelloMetal, HelloMetalKit) |
MTLBuffer (contents, length, makeBuffer(bytes:), makeBuffer(bytesNoCopy:), gpuAddress, textures from buffers) |
✅ | ≤17 | adapted: process memory in every storage mode. Tested (MetalObjCTest, HelloMetal) |
MTLTexture, MTLTextureDescriptor (1D, 2D, arrays, cube, 3D, mip levels, replace(region:), getBytes, views) |
🟡 | ≤17 | adapted: linear storage; views of a format, or of some levels and slices, share the parent's memory (issue #365, tested by MPSTest's sub-images); kernels read and write the 8, 16 and 32-bit color formats, packed 565 and 10-10-10-2; compressed formats are stored but read as zero; multisample textures (sampleCount 2 or 4) hold one sample per pixel. Tested (MetalObjCTest, MetalRenderObjCTest, HelloMetal) |
MTLSamplerState, MTLSamplerDescriptor; constexpr sampler in kernels |
✅ | ≤17 | nearest and bilinear filtering, the address modes, border colors, mip filters, compare functions (depth2d::sample_compare); no anisotropy. Tested (MetalObjCTest, MetalRenderObjCTest) |
MTLLibrary, MTLFunction, MTLCompileOptions (macros), MTLFunctionConstantValues, MTLFunctionConstant, MTLLibraryError |
✅ | ≤17 | adapted: kernels translated to C++ and compiled for the CPU (tools/mslc.py); default.metallib from isim build; source compiled at run time. Tested (MetalObjCTest, HelloMetal) |
MTLComputePipelineState, MTLComputePipelineDescriptor, MTLComputeCommandEncoder (buffers, bytes, textures, samplers, threadgroup memory, dispatchThreadgroups, dispatchThreads with non-uniform groups, indirect dispatch) |
✅ | ≤17 | adapted: threadgroups on worker threads, fibers at barriers, SIMD width 1; reflection is empty. Tested (MetalObjCTest, HelloMetal) |
MTLCommandQueue, MTLCommandBuffer (status, scheduled and completed handlers, waitUntilCompleted, timestamps), MTLBlitCommandEncoder (copies, fills, generateMipmaps) |
✅ | ≤17 | adapted: buffers run in commit order on the queue's background thread; mipmaps box-filtered for 8-bit and float formats. Tested (MetalObjCTest, HelloMetal) |
| Metal Shading Language (types, math, atomics, textures, barriers, SIMD-group functions) | 🟡 | ≤17 | adapted: C++ against isim's metal_stdlib; no ray tracing, mesh shaders, argument buffers, imageblocks or quad-group functions; bool vectors are char vectors. Tested (MetalObjCTest) |
MTLRenderPipelineState, MTLRenderPipelineDescriptor (vertex and fragment functions, MTLVertexDescriptor, color attachments with blending and write masks, depth and stencil formats, rasterizationEnabled), MTLRenderPipelineReflection |
✅ | ≤17 | adapted: the functions run on the CPU through isim's rasterizer; a fragment input the vertex function does not write is an error at creation, as on a device; reflection is empty; dual-source blending and alpha to coverage are not provided. Tested (MetalRenderObjCTest, HelloMetalKit) |
MTLRenderPassDescriptor (color, depth and stencil attachments, load and store actions, clear values, multisample resolve, visibilityResultBuffer) |
✅ | ≤17 | adapted: a multisample attachment holds one sample per pixel; resolving copies it. Tested (MetalRenderObjCTest) |
MTLRenderCommandEncoder (vertex and fragment buffers, bytes, textures and samplers; viewport, scissor, cull mode, winding, fill mode, depth clip mode, depth bias, blend color, depth-stencil state, stencil references, visibility results; drawPrimitives, drawIndexedPrimitives, instancing, base vertex and instance, indirect draws) |
✅ | ≤17 | adapted: isim's tile rasterizer on the worker threads (points, lines, line strips, triangles, triangle strips); one viewport and scissor rectangle. Tested (MetalRenderObjCTest, HelloMetalKit) |
MTLDepthStencilState, MTLDepthStencilDescriptor, MTLStencilDescriptor |
✅ | ≤17 | the depth test and write, the stencil test and operations with read and write masks, per face. Tested (MetalRenderObjCTest) |
Metal Shading Language for rendering: vertex / fragment functions, [[stage_in]], [[position]], [[flat]], [[user(name)]], [[point_size]], [[color(n)]], [[depth(...)]], [[front_facing]], [[point_coord]], discard_fragment, depth2d (sample_compare), texturecube, texture2d_ms |
🟡 | ≤17 | adapted: one fragment at a time, so dfdx / dfdy / fwidth are 0 and implicit-LOD sampling uses mip level 0; no tessellation, amplification, raster order groups or programmable blending beyond [[color(n)]] inputs. Tested (MetalRenderObjCTest, HelloMetalKit) |
MTLDrawable, presentDrawable |
✅ | ≤17 | presented when the command buffer completes (its rendering is done). Tested (HelloMetalKit) |
2418 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.
List
MTL4AccelerationStructureBoundingBoxGeometryDescriptorvar boundingBoxBuffer: MTL4BufferRangevar boundingBoxCount: Intvar boundingBoxStride: IntMTL4AccelerationStructureCurveGeometryDescriptorvar controlPointBuffer: MTL4BufferRangevar controlPointCount: Intvar controlPointFormat: MTLAttributeFormatvar controlPointStride: Intvar curveBasis: MTLCurveBasisvar curveEndCaps: MTLCurveEndCapsvar curveType: MTLCurveTypevar indexBuffer: MTL4BufferRangevar indexType: MTLIndexTypevar radiusBuffer: MTL4BufferRangevar radiusFormat: MTLAttributeFormatvar radiusStride: Intvar segmentControlPointCount: Intvar segmentCount: IntMTL4AccelerationStructureDescriptorMTL4AccelerationStructureGeometryDescriptorvar allowDuplicateIntersectionFunctionInvocation: Boolvar intersectionFunctionTableOffset: Intvar label: String?var opaque: Boolvar primitiveDataBuffer: MTL4BufferRangevar primitiveDataElementSize: Intvar primitiveDataStride: IntMTL4AccelerationStructureMotionBoundingBoxGeometryDescriptorvar boundingBoxBuffers: MTL4BufferRangevar boundingBoxCount: Intvar boundingBoxStride: IntMTL4AccelerationStructureMotionCurveGeometryDescriptorvar controlPointBuffers: MTL4BufferRangevar controlPointCount: Intvar controlPointFormat: MTLAttributeFormatvar controlPointStride: Intvar curveBasis: MTLCurveBasisvar curveEndCaps: MTLCurveEndCapsvar curveType: MTLCurveTypevar indexBuffer: MTL4BufferRangevar indexType: MTLIndexTypevar radiusBuffers: MTL4BufferRangevar radiusFormat: MTLAttributeFormatvar radiusStride: Intvar segmentControlPointCount: Intvar segmentCount: IntMTL4AccelerationStructureMotionTriangleGeometryDescriptorvar indexBuffer: MTL4BufferRangevar indexType: MTLIndexTypevar transformationMatrixBuffer: MTL4BufferRangevar transformationMatrixLayout: MTLMatrixLayoutvar triangleCount: Intvar vertexBuffers: MTL4BufferRangevar vertexFormat: MTLAttributeFormatvar vertexStride: IntMTL4AccelerationStructureTriangleGeometryDescriptorvar indexBuffer: MTL4BufferRangevar indexType: MTLIndexTypevar transformationMatrixBuffer: MTL4BufferRangevar transformationMatrixLayout: MTLMatrixLayoutvar triangleCount: Intvar vertexBuffer: MTL4BufferRangevar vertexFormat: MTLAttributeFormatvar vertexStride: IntMTL4AlphaToCoverageStatecase disabledcase enabledinit?(rawValue: Int)MTL4AlphaToOneStatecase disabledcase enabledinit?(rawValue: Int)MTL4Archivevar label: String?func makeBinaryFunction(descriptor: MTL4BinaryFunctionDescriptor) throws -> any MTL4BinaryFunctionfunc makeComputePipelineState(descriptor: MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: MTL4PipelineStageDynamicLinkingDescriptor?) throws -> any MTLComputePipelineStatefunc makeRenderPipelineState(descriptor: MTL4PipelineDescriptor, dynamicLinkingDescriptor: MTL4RenderPipelineDynamicLinkingDescriptor?) throws -> any MTLRenderPipelineStateMTL4ArgumentTablevar device: any MTLDevicevar label: String?func setAddress(MTLGPUAddress, attributeStride: Int, index: Int)func setAddress(MTLGPUAddress, index: Int)func setResource(MTLResourceID, bufferIndex: Int)func setSamplerState(MTLResourceID, index: Int)func setTexture(MTLResourceID, index: Int)MTL4ArgumentTableDescriptorvar initializeBindings: Boolvar label: String?var maxBufferBindCount: Intvar maxSamplerStateBindCount: Intvar maxTextureBindCount: Intvar supportAttributeStrides: BoolMTL4BinaryFunctionvar functionType: MTLFunctionTypevar name: String?MTL4BinaryFunctionDescriptorvar functionDescriptor: MTL4FunctionDescriptorvar name: Stringvar options: MTL4BinaryFunctionOptionsMTL4BinaryFunctionOptionsinit(rawValue: UInt)static var pipelineIndependent: MTL4BinaryFunctionOptionsMTL4BlendStatecase disabledcase enabledinit?(rawValue: Int)case unspecializedMTL4BufferRangevar bufferAddress: MTLGPUAddressinit()init(bufferAddress: MTLGPUAddress, length: UInt64)var length: UInt64func MTL4BufferRangeMake(MTLGPUAddress, UInt64) -> MTL4BufferRangeMTL4CommandAllocatorfunc allocatedSize() -> UInt64var device: any MTLDevicevar label: String?func reset()MTL4CommandAllocatorDescriptorvar label: String?MTL4CommandBufferfunc beginCommandBuffer(allocator: any MTL4CommandAllocator)func beginCommandBuffer(allocator: any MTL4CommandAllocator, options: MTL4CommandBufferOptions)var device: any MTLDevicefunc endCommandBuffer()var label: String?func makeComputeCommandEncoder() -> (any MTL4ComputeCommandEncoder)?func makeMachineLearningCommandEncoder() -> (any MTL4MachineLearningCommandEncoder)?func makeRenderCommandEncoder(descriptor: MTL4RenderPassDescriptor, options: MTL4RenderEncoderOptions) -> (any MTL4RenderCommandEncoder)?func popDebugGroup()func pushDebugGroup(String)func resolveCounterHeap(any MTL4CounterHeap, range: Range<Int>, buffer: MTL4BufferRange, fenceToWait: (any MTLFence)?, fenceToUpdate: (any MTLFence)?)func useResidencySet(any MTLResidencySet)func useResidencySets([any MTLResidencySet])func writeTimestamp(counterHeap: any MTL4CounterHeap, index: Int)MTL4CommandBufferOptionsvar logState: (any MTLLogState)?MTL4CommandEncoderfunc barrier(afterEncoderStages: MTLStages, beforeEncoderStages: MTLStages, visibilityOptions: MTL4VisibilityOptions)func barrier(afterQueueStages: MTLStages, beforeStages: MTLStages, visibilityOptions: MTL4VisibilityOptions)func barrier(afterStages: MTLStages, beforeQueueStages: MTLStages, visibilityOptions: MTL4VisibilityOptions)var commandBuffer: (any MTL4CommandBuffer)?func endEncoding()func insertDebugSignpost(String)var label: String?func popDebugGroup()func pushDebugGroup(String)func updateFence(any MTLFence, afterEncoderStages: MTLStages)func waitForFence(any MTLFence, beforeEncoderStages: MTLStages)MTL4CommandQueuefunc addResidencySet(any MTLResidencySet)func addResidencySets([any MTLResidencySet])func commit([any MTL4CommandBuffer], options: MTL4CommitOptions?)func copyMappings(sourceBuffer: any MTLBuffer, destinationBuffer: any MTLBuffer, operations: [MTL4CopySparseBufferMappingOperation])func copyMappings(sourceTexture: any MTLTexture, destinationTexture: any MTLTexture, operations: [MTL4CopySparseTextureMappingOperation])var device: any MTLDevicevar label: String?func removeResidencySet(any MTLResidencySet)func removeResidencySets([any MTLResidencySet])func signalDrawable(any MTLDrawable)func signalEvent(any MTLEvent, value: UInt64)func updateMappings(buffer: any MTLBuffer, heap: (any MTLHeap)?, operations: [MTL4UpdateSparseBufferMappingOperation])func updateMappings(texture: any MTLTexture, heap: (any MTLHeap)?, operations: [MTL4UpdateSparseTextureMappingOperation])func waitForDrawable(any MTLDrawable)func waitForEvent(any MTLEvent, value: UInt64)MTL4CommandQueueDescriptorvar feedbackQueue: dispatch_queue_t?var label: String?MTL4CommandQueueErrorstatic var accessRevoked: MTL4CommandQueueError.CodeMTL4CommandQueueError.Codecase accessRevokedcase deviceRemovedinit?(rawValue: Int)caseinternal``case nonecase notPermittedcase outOfMemorycase timeoutstatic var deviceRemoved: MTL4CommandQueueError.Codestatic var errorDomain: Stringstatic varinternal: MTL4CommandQueueError.Codestatic var none: MTL4CommandQueueError.Codestatic var notPermitted: MTL4CommandQueueError.Codestatic var outOfMemory: MTL4CommandQueueError.Codestatic var timeout: MTL4CommandQueueError.Codelet MTL4CommandQueueErrorDomain: StringMTL4CommitFeedbackvar error: (any Error)?var gpuEndTime: CFTimeIntervalvar gpuStartTime: CFTimeIntervalMTL4CommitFeedbackHandlerMTL4CommitOptionsfunc addFeedbackHandler(MTL4CommitFeedbackHandler)MTL4Compilervar device: any MTLDevicevar label: String?func makeBinaryFunction(descriptor: MTL4BinaryFunctionDescriptor, compilerTaskOptions: MTL4CompilerTaskOptions?) throws -> any MTL4BinaryFunctionfunc makeBinaryFunction(descriptor: MTL4BinaryFunctionDescriptor, compilerTaskOptions: MTL4CompilerTaskOptions?) async throws -> any MTL4BinaryFunctionfunc makeComputePipelineState(descriptor: MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: MTL4PipelineStageDynamicLinkingDescriptor?, compilerTaskOptions: MTL4CompilerTaskOptions?) async throws -> any MTLComputePipelineStatefunc makeComputePipelineState(descriptor: MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: MTL4PipelineStageDynamicLinkingDescriptor?, compilerTaskOptions: MTL4CompilerTaskOptions?) throws -> any MTLComputePipelineStatefunc makeDynamicLibrary(library: any MTLLibrary) throws -> any MTLDynamicLibraryfunc makeDynamicLibrary(library: any MTLLibrary) async throws -> any MTLDynamicLibraryfunc makeDynamicLibrary(url: URL) throws -> any MTLDynamicLibraryfunc makeDynamicLibrary(url: URL) async throws -> any MTLDynamicLibraryfunc makeLibrary(descriptor: MTL4LibraryDescriptor) throws -> any MTLLibraryfunc makeLibrary(descriptor: MTL4LibraryDescriptor) async throws -> any MTLLibraryfunc makeMachineLearningPipelineState(descriptor: MTL4MachineLearningPipelineDescriptor) async throws -> any MTL4MachineLearningPipelineStatefunc makeMachineLearningPipelineState(descriptor: MTL4MachineLearningPipelineDescriptor) throws -> any MTL4MachineLearningPipelineStatefunc makeRenderPipelineState(descriptor: MTL4PipelineDescriptor, dynamicLinkingDescriptor: MTL4RenderPipelineDynamicLinkingDescriptor?, compilerTaskOptions: MTL4CompilerTaskOptions?) async throws -> any MTLRenderPipelineStatefunc makeRenderPipelineState(descriptor: MTL4PipelineDescriptor, dynamicLinkingDescriptor: MTL4RenderPipelineDynamicLinkingDescriptor?, compilerTaskOptions: MTL4CompilerTaskOptions?) throws -> any MTLRenderPipelineStatefunc makeRenderPipelineStateBySpecialization(descriptor: MTL4PipelineDescriptor, pipeline: any MTLRenderPipelineState) throws -> any MTLRenderPipelineStatefunc makeRenderPipelineStateBySpecialization(descriptor: MTL4PipelineDescriptor, pipeline: any MTLRenderPipelineState) async throws -> any MTLRenderPipelineStatevar pipelineDataSetSerializer: (any MTL4PipelineDataSetSerializer)?MTL4CompilerDescriptorvar label: String?var pipelineDataSetSerializer: (any MTL4PipelineDataSetSerializer)?MTL4CompilerTaskOptionsvar lookupArchives: [any MTL4Archive]?MTL4CompilerTaskStatuscase compilingcase finishedinit?(rawValue: Int)case nonecase scheduledMTL4ComputeCommandEncoderfunc build(destinationAccelerationStructure: any MTLAccelerationStructure, descriptor: MTL4AccelerationStructureDescriptor, scratchBuffer: MTL4BufferRange)func copy(sourceAccelerationStructure: any MTLAccelerationStructure, destinationAccelerationStructure: any MTLAccelerationStructure)func copy(sourceBuffer: any MTLBuffer, sourceOffset: Int, destinationBuffer: any MTLBuffer, destinationOffset: Int, size: Int)func copy(sourceBuffer: any MTLBuffer, sourceOffset: Int, sourceBytesPerRow: Int, sourceBytesPerImage: Int, sourceSize: MTLSize, destinationTexture: any MTLTexture, destinationSlice: Int, destinationLevel: Int, destinationOrigin: MTLOrigin, options: MTLBlitOption)func copy(sourceTensor: any MTLTensor, sourceOrigin: MTLTensorExtents, sourceDimensions: MTLTensorExtents, destinationTensor: any MTLTensor, destinationOrigin: MTLTensorExtents, destinationDimensions: MTLTensorExtents)func copy(sourceTensor: any MTLTensor, sourceOrigin: MTLTensorExtents, sourceDimensions: MTLTensorExtents, sourcePlane: MTLTensorPlaneType, destinationTensor: any MTLTensor, destinationOrigin: MTLTensorExtents, destinationDimensions: MTLTensorExtents, destinationPlane: MTLTensorPlaneType)func copy(sourceTexture: any MTLTexture, destinationTexture: any MTLTexture)func copy(sourceTexture: any MTLTexture, sourceSlice: Int, sourceLevel: Int, destinationTexture: any MTLTexture, destinationSlice: Int, destinationLevel: Int, sliceCount: Int, levelCount: Int)func copy(sourceTexture: any MTLTexture, sourceSlice: Int, sourceLevel: Int, sourceOrigin: MTLOrigin, sourceSize: MTLSize, destinationBuffer: any MTLBuffer, destinationOffset: Int, destinationBytesPerRow: Int, destinationBytesPerImage: Int, options: MTLBlitOption)func copy(sourceTexture: any MTLTexture, sourceSlice: Int, sourceLevel: Int, sourceOrigin: MTLOrigin, sourceSize: MTLSize, destinationTexture: any MTLTexture, destinationSlice: Int, destinationLevel: Int, destinationOrigin: MTLOrigin)func copyAndCompact(sourceAccelerationStructure: any MTLAccelerationStructure, destinationAccelerationStructure: any MTLAccelerationStructure)func copyCommands(sourceBuffer: any MTLIndirectCommandBuffer, sourceRange: Range<Int>, destinationBuffer: any MTLIndirectCommandBuffer, destinationIndex: Int)func dispatchThreadgroups(indirectBuffer: MTLGPUAddress, threadsPerThreadgroup: MTLSize)func dispatchThreadgroups(threadgroupsPerGrid: MTLSize, threadsPerThreadgroup: MTLSize)func dispatchThreads(indirectBuffer: MTLGPUAddress)func dispatchThreads(threadsPerGrid: MTLSize, threadsPerThreadgroup: MTLSize)func executeCommands(buffer: any MTLIndirectCommandBuffer, indirectBuffer: MTLGPUAddress)func executeCommands(buffer: any MTLIndirectCommandBuffer, range: Range<Int>)func fill(buffer: any MTLBuffer, range: Range<Int>, value: UInt8)func generateMipmaps(texture: any MTLTexture)func optimizeCommands(buffer: any MTLIndirectCommandBuffer, range: Range<Int>)func optimizeContents(forCPUAccess: any MTLTexture)func optimizeContents(forCPUAccess: any MTLTexture, slice: Int, level: Int)func optimizeContents(forGPUAccess: any MTLTexture)func optimizeContents(forGPUAccess: any MTLTexture, slice: Int, level: Int)func refit(sourceAccelerationStructure: any MTLAccelerationStructure, descriptor: MTL4AccelerationStructureDescriptor, destinationAccelerationStructure: (any MTLAccelerationStructure)?, scratchBuffer: MTL4BufferRange, options: MTLAccelerationStructureRefitOptions)func resetCommands(buffer: any MTLIndirectCommandBuffer, range: Range<Int>)func setArgumentTable((any MTL4ArgumentTable)?)func setComputePipelineState(any MTLComputePipelineState)func setImageblockSize(width: Int, height: Int)func setThreadgroupMemoryLength(Int, index: Int)func stages() -> MTLStagesfunc writeCompactedSize(sourceAccelerationStructure: any MTLAccelerationStructure, destinationBuffer: MTL4BufferRange)func writeTimestamp(granularity: MTL4TimestampGranularity, counterHeap: any MTL4CounterHeap, index: Int)MTL4ComputePipelineDescriptorvar computeFunctionDescriptor: MTL4FunctionDescriptor?var contentionRelief: MTLContentionReliefvar forwardProgressUsage: MTLForwardProgressUsagevar maxTotalThreadsPerThreadgroup: Intvar optimizeForPersistentKernel: Boolvar requiredThreadsPerThreadgroup: MTLSizefunc reset()var staticLinkingDescriptor: MTL4StaticLinkingDescriptor?var supportBinaryLinking: Boolvar supportIndirectCommandBuffers: MTL4IndirectCommandBufferSupportStatevar threadGroupSizeIsMultipleOfThreadExecutionWidth: BoolMTL4CopySparseBufferMappingOperationvar destinationOffset: Intinit()init(sourceRange: NSRange, destinationOffset: Int)var sourceRange: NSRangeMTL4CopySparseTextureMappingOperationvar destinationLevel: Intvar destinationOrigin: MTLOriginvar destinationSlice: Intinit()init(sourceRegion: MTLRegion, sourceLevel: Int, sourceSlice: Int, destinationOrigin: MTLOrigin, destinationLevel: Int, destinationSlice: Int)var sourceLevel: Intvar sourceRegion: MTLRegionvar sourceSlice: IntMTL4CounterHeapvar count: Intfunc invalidateCounterRange(Range<Int>)var label: String?func resolveCounterRange(Range<Int>) throws -> Data?var type: MTL4CounterHeapTypeMTL4CounterHeapDescriptorvar count: Intvar type: MTL4CounterHeapTypeMTL4CounterHeapTypeinit?(rawValue: Int)case invalidcase timestamp- … and 2118 more (
isim/data/api-coverage.json.gz)