MTL4Archive
public func makeComputePipelineState(descriptor: Metal.MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: Metal.MTL4PipelineStageDynamicLinkingDescriptor? = nil) throws -> any Metal.MTLComputePipelineState
MTL4Archive
public func makeRenderPipelineState(descriptor: Metal.MTL4PipelineDescriptor, dynamicLinkingDescriptor: Metal.MTL4RenderPipelineDynamicLinkingDescriptor? = nil) throws -> any Metal.MTLRenderPipelineState
MTL4CommandBuffer
public func resolveCounterHeap(_ counterHeap: any Metal.MTL4CounterHeap, range: Swift.Range<Swift.Int>, buffer: Metal.MTL4BufferRange, fenceToWait: (any Metal.MTLFence)? = nil, fenceToUpdate: (any Metal.MTLFence)? = nil)
MTL4CommandBuffer
public func useResidencySets(_ residencySets: [any Metal.MTLResidencySet])
MTL4CommandEncoder
public func barrier(afterQueueStages: Metal.MTLStages, beforeStages: Metal.MTLStages, visibilityOptions: Metal.MTL4VisibilityOptions = [ .device ])
MTL4CommandEncoder
public func barrier(afterStages: Metal.MTLStages, beforeQueueStages: Metal.MTLStages, visibilityOptions: Metal.MTL4VisibilityOptions = [ .device ])
MTL4CommandEncoder
public func barrier(afterEncoderStages: Metal.MTLStages, beforeEncoderStages: Metal.MTLStages, visibilityOptions: Metal.MTL4VisibilityOptions = [ .device ])
MTL4CommandQueue
public func addResidencySets(_ residencySets: [any Metal.MTLResidencySet])
MTL4CommandQueue
public func commit(_ commandBuffers: [any Metal.MTL4CommandBuffer], options: Metal.MTL4CommitOptions? = nil)
MTL4CommandQueue
public func copyMappings(sourceTexture: any Metal.MTLTexture, destinationTexture: any Metal.MTLTexture, operations: [Metal.MTL4CopySparseTextureMappingOperation])
MTL4CommandQueue
public func copyMappings(sourceBuffer: any Metal.MTLBuffer, destinationBuffer: any Metal.MTLBuffer, operations: [Metal.MTL4CopySparseBufferMappingOperation])
MTL4CommandQueue
public func removeResidencySets(_ residencySets: [any Metal.MTLResidencySet])
MTL4CommandQueue
public func updateMappings(texture: any Metal.MTLTexture, heap: (any Metal.MTLHeap)?, operations: [Metal.MTL4UpdateSparseTextureMappingOperation])
MTL4CommandQueue
public func updateMappings(buffer: any Metal.MTLBuffer, heap: (any Metal.MTLHeap)?, operations: [Metal.MTL4UpdateSparseBufferMappingOperation])
MTL4Compiler
public func makeBinaryFunction(descriptor: Metal.MTL4BinaryFunctionDescriptor, compilerTaskOptions: Metal.MTL4CompilerTaskOptions? = nil) throws -> any Metal.MTL4BinaryFunction
MTL4Compiler
public func makeBinaryFunction(descriptor: Metal.MTL4BinaryFunctionDescriptor, compilerTaskOptions: Metal.MTL4CompilerTaskOptions? = nil) async throws -> any Metal.MTL4BinaryFunction
MTL4Compiler
public func makeComputePipelineState(descriptor: Metal.MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: Metal.MTL4PipelineStageDynamicLinkingDescriptor? = nil, compilerTaskOptions: Metal.MTL4CompilerTaskOptions? = nil) throws -> any Metal.MTLComputePipelineState
MTL4Compiler
public func makeComputePipelineState(descriptor: Metal.MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: Metal.MTL4PipelineStageDynamicLinkingDescriptor? = nil, compilerTaskOptions: Metal.MTL4CompilerTaskOptions? = nil) async throws -> any Metal.MTLComputePipelineState
MTL4Compiler
public func makeDynamicLibrary(library: any Metal.MTLLibrary) async throws -> any Metal.MTLDynamicLibrary
MTL4Compiler
public func makeDynamicLibrary(url: Foundation.URL) async throws -> any Metal.MTLDynamicLibrary
MTL4Compiler
public func makeLibrary(descriptor: Metal.MTL4LibraryDescriptor) async throws -> any Metal.MTLLibrary
MTL4Compiler
public func makeMachineLearningPipelineState(descriptor: Metal.MTL4MachineLearningPipelineDescriptor) throws -> any Metal.MTL4MachineLearningPipelineState
MTL4Compiler
public func makeMachineLearningPipelineState(descriptor: Metal.MTL4MachineLearningPipelineDescriptor) async throws -> any Metal.MTL4MachineLearningPipelineState
MTL4Compiler
public func makeRenderPipelineState(descriptor: Metal.MTL4PipelineDescriptor, dynamicLinkingDescriptor: Metal.MTL4RenderPipelineDynamicLinkingDescriptor? = nil, compilerTaskOptions: Metal.MTL4CompilerTaskOptions? = nil) throws -> any Metal.MTLRenderPipelineState
MTL4Compiler
public func makeRenderPipelineState(descriptor: Metal.MTL4PipelineDescriptor, dynamicLinkingDescriptor: Metal.MTL4RenderPipelineDynamicLinkingDescriptor? = nil, compilerTaskOptions: Metal.MTL4CompilerTaskOptions? = nil) async throws -> any Metal.MTLRenderPipelineState
MTL4Compiler
public func makeRenderPipelineStateBySpecialization(descriptor: Metal.MTL4PipelineDescriptor, pipeline: any Metal.MTLRenderPipelineState) throws -> any Metal.MTLRenderPipelineState
MTL4Compiler
public func makeRenderPipelineStateBySpecialization(descriptor: Metal.MTL4PipelineDescriptor, pipeline: any Metal.MTLRenderPipelineState) async throws -> any Metal.MTLRenderPipelineState
MTL4ComputeCommandEncoder
public func copy(sourceTexture: any Metal.MTLTexture, sourceSlice: Swift.Int, sourceLevel: Swift.Int, sourceOrigin: Metal.MTLOrigin, sourceSize: Metal.MTLSize, destinationBuffer: any Metal.MTLBuffer, destinationOffset: Swift.Int, destinationBytesPerRow: Swift.Int, destinationBytesPerImage: Swift.Int, options: Metal.MTLBlitOption = [])
MTL4ComputeCommandEncoder
public func copy(sourceBuffer: any Metal.MTLBuffer, sourceOffset: Swift.Int, sourceBytesPerRow: Swift.Int, sourceBytesPerImage: Swift.Int, sourceSize: Metal.MTLSize, destinationTexture: any Metal.MTLTexture, destinationSlice: Swift.Int, destinationLevel: Swift.Int, destinationOrigin: Metal.MTLOrigin, options: Metal.MTLBlitOption = [])
MTL4ComputeCommandEncoder
public func copyCommands(sourceBuffer: any Metal.MTLIndirectCommandBuffer, sourceRange: Swift.Range<Swift.Int>, destinationBuffer: any Metal.MTLIndirectCommandBuffer, destinationIndex: Swift.Int)
MTL4ComputeCommandEncoder
public func executeCommands(buffer: any Metal.MTLIndirectCommandBuffer, range: Swift.Range<Swift.Int>)
MTL4ComputeCommandEncoder
public func fill(buffer: any Metal.MTLBuffer, range: Swift.Range<Swift.Int>, value: Swift.UInt8)
MTL4ComputeCommandEncoder
public func optimizeCommands(buffer: any Metal.MTLIndirectCommandBuffer, range: Swift.Range<Swift.Int>)
MTL4ComputeCommandEncoder
public func resetCommands(buffer: any Metal.MTLIndirectCommandBuffer, range: Swift.Range<Swift.Int>)
MTL4CounterHeap
public func invalidateCounterRange(_ range: Swift.Range<Swift.Int>)
MTL4CounterHeap
public func resolveCounterRange(_ range: Swift.Range<Swift.Int>) throws -> Foundation.Data?
MTL4MachineLearningPipelineDescriptor
public func setInputDimensions(_ dimensions: [Metal.MTLTensorExtents], bufferIndex: Swift.Int)
MTL4RenderCommandEncoder
public func executeCommands(buffer: any Metal.MTLIndirectCommandBuffer, range: Swift.Range<Swift.Int>)
MTL4RenderCommandEncoder
public func setDepthTestBounds(_ bounds: Swift.ClosedRange<Swift.Float>)
MTL4RenderCommandEncoder
public func setScissorRects(_ scissorRects: [Metal.MTLScissorRect])
MTL4RenderCommandEncoder
public func setVertexAmplificationCount(_ count: Swift.Int)
MTL4RenderCommandEncoder
public func setVertexAmplificationCount(_ viewMappings: [Metal.MTLVertexAmplificationViewMapping])
MTL4RenderCommandEncoder
public func setViewports(_ viewports: [Metal.MTLViewport])
MTLArgumentEncoder
public func setDepthStencilStates(_ depthStencilStates: [(any Metal.MTLDepthStencilState)?], range: Swift.Range<Swift.Int>)
MTLRenderCommandEncoder
public func setDepthTestBounds(_ bounds: Swift.ClosedRange<Swift.Float>)
MTLResourceViewPool
public func copyResourceViews(sourcePool: any Metal.MTLResourceViewPool, sourceRange: Swift.Range<Swift.Int>, destinationIndex: Swift.Int) -> Metal.MTLResourceID
__MTLObjCProxy
@objc(__waitUntilCompletedAsync:) func __waitUntilCompletedAsync(_: @escaping (any Metal.MTLCommandBuffer) -> Swift.Void)
__MTLObjCProxy
@objc(__waitUntilScheduledAsync:) func __waitUntilScheduledAsync(_: @escaping (any Metal.MTLCommandBuffer) -> Swift.Void)
MTLCommandEncoder
- (void)barrierAfterQueueStages:(MTLStages)afterQueueStages beforeStages:(MTLStages)beforeStages;
MTLTexture
- (nullable id<MTLTexture>)newTextureViewWithDescriptor:(nonnull MTLTextureViewDescriptor *)descriptor;
MTLStructMember
- (nullable MTLTensorReferenceType *)tensorReferenceType;
MTLArrayType
- (nullable MTLTensorReferenceType *)elementTensorReferenceType;
MTLDevice
- (MTLSizeAndAlign)tensorSizeAndAlignWithDescriptor:(nonnull MTLTensorDescriptor *)descriptor;
MTLDevice
- (nullable id<MTLTensor>)newTensorWithDescriptor:(nonnull MTLTensorDescriptor *)descriptor error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (nullable id<MTLFunctionHandle>)functionHandleWithFunction:(nonnull id<MTLFunction>)function;
MTLDevice
- (nullable id<MTL4CommandAllocator>)newCommandAllocator;
MTLDevice
- (nullable id<MTL4CommandAllocator>)newCommandAllocatorWithDescriptor:(nonnull MTL4CommandAllocatorDescriptor *)descriptor error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (nullable id<MTL4CommandQueue>)newMTL4CommandQueue;
MTLDevice
- (nullable id<MTL4CommandQueue>)newMTL4CommandQueueWithDescriptor:(nonnull MTL4CommandQueueDescriptor *)descriptor error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (nullable id<MTL4CommandBuffer>)newCommandBuffer;
MTLDevice
- (nullable id<MTL4ArgumentTable>)newArgumentTableWithDescriptor:(nonnull MTL4ArgumentTableDescriptor *)descriptor error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (nullable id<MTLTextureViewPool>)newTextureViewPoolWithDescriptor:(nonnull MTLResourceViewPoolDescriptor *)descriptor error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (nullable id<MTL4Compiler>)newCompilerWithDescriptor:(nonnull MTL4CompilerDescriptor *)descriptor error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (nullable id<MTL4Archive>)newArchiveWithURL:(nonnull NSURL *)url error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (nonnull id<MTL4PipelineDataSetSerializer>)newPipelineDataSetSerializerWithDescriptor:(nonnull MTL4PipelineDataSetSerializerDescriptor *)descriptor;
MTLDevice
- (nullable id<MTLBuffer>)newBufferWithLength:(NSUInteger)length options:(MTLResourceOptions)options placementSparsePageSize:(MTLSparsePageSize)placementSparsePageSize;
MTLDevice
- (nullable id<MTL4CounterHeap>)newCounterHeapWithDescriptor:(nonnull MTL4CounterHeapDescriptor *)descriptor error:(NSError * _Nullable * _Nullable)error;
MTLDevice
- (NSUInteger)sizeOfCounterHeapEntry:(MTL4CounterHeapType)type;
MTLDevice
- (uint64_t)queryTimestampFrequency;
MTLDevice
- (nullable id<MTLFunctionHandle>)functionHandleWithBinaryFunction:(nonnull id<MTL4BinaryFunction>)function;
MTLRenderPipelineState
- (nullable id<MTLFunctionHandle>)functionHandleWithName:(nonnull NSString *)name stage:(MTLRenderStages)stage;
MTLRenderPipelineState
- (nullable id<MTLFunctionHandle>)functionHandleWithBinaryFunction:(nonnull id<MTL4BinaryFunction>)function stage:(MTLRenderStages)stage;
MTLRenderPipelineState
- (nullable id<MTLRenderPipelineState>)newRenderPipelineStateWithBinaryFunctions:(nonnull MTL4RenderPipelineBinaryFunctionsDescriptor *)binaryFunctionsDescriptor error:(NSError * _Nullable * _Nullable)error;
MTLRenderPipelineState
- (nonnull MTL4PipelineDescriptor *)newRenderPipelineDescriptorForSpecialization;
MTLBlitCommandEncoder
- (void)copyFromTensor:(nonnull id<MTLTensor>)sourceTensor sourceOrigin:(nonnull MTLTensorExtents *)sourceOrigin sourceDimensions:(nonnull MTLTensorExtents *)sourceDimensions toTensor:(nonnull id<MTLTensor>)destinationTensor destinationOrigin:(nonnull MTLTensorExtents *)destinationOrigin destinationDimensions:(nonnull MTLTensorExtents *)destinationDimensions;
MTLComputePipelineState
- (nullable id<MTLFunctionHandle>)functionHandleWithName:(nonnull NSString *)name;
MTLComputePipelineState
- (nullable id<MTLFunctionHandle>)functionHandleWithBinaryFunction:(nonnull id<MTL4BinaryFunction>)function;
MTLComputePipelineState
- (nullable id<MTLComputePipelineState>)newComputePipelineStateWithBinaryFunctions:(nonnull NSArray<id<MTL4BinaryFunction>> *)additionalBinaryFunctions error:(NSError * _Nullable * _Nullable)error;
MTLSharedEventListener
+ (nonnull MTLSharedEventListener *)sharedListener;
MTLArgumentEncoder
- (void)setDepthStencilState:(nullable id<MTLDepthStencilState>)depthStencilState atIndex:(NSUInteger)index;
MTLArgumentEncoder
- (void)setDepthStencilStates:(id<MTLDepthStencilState> _Nullable const * _Nonnull)depthStencilStates withRange:(NSRange)range;
MTLBuffer
- (nullable id<MTLTensor>)newTensorWithDescriptor:(nonnull MTLTensorDescriptor *)descriptor offset:(NSUInteger)offset error:(NSError * _Nullable * _Nullable)error;
MTLIndirectRenderCommand
- (void)setDepthStencilState:(nullable id<MTLDepthStencilState>)depthStencilState;
MTLIndirectRenderCommand
- (void)setDepthBias:(float)depthBias slopeScale:(float)slopeScale clamp:(float)clamp;
MTLIndirectRenderCommand
- (void)setDepthClipMode:(MTLDepthClipMode)depthClipMode;
MTLIndirectRenderCommand
- (void)setCullMode:(MTLCullMode)cullMode;
MTLIndirectRenderCommand
- (void)setFrontFacingWinding:(MTLWinding)frontFacingWindning;
MTLIndirectRenderCommand
- (void)setTriangleFillMode:(MTLTriangleFillMode)fillMode;
MTLLibrary
- (nullable MTLFunctionReflection *)reflectionForFunctionWithName:(nonnull NSString *)functionName;
MTLRenderCommandEncoder
- (void)setDepthTestMinBound:(float)minBound maxBound:(float)maxBound;
MTLRenderCommandEncoder
- (void)setColorAttachmentMap:(nullable MTLLogicalToPhysicalColorAttachmentMap *)mapping;
MTL4RenderPassDescriptor
public var samplePositions: [Metal.MTLSamplePosition]
MTLTensorExtents
public var extents: [Swift.Int]
MTLTextureViewDescriptor
public var levelRange: Swift.Range<Swift.Int>
MTLTextureViewDescriptor
public var sliceRange: Swift.Range<Swift.Int>
MTLTextureDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSparsePageSize placementSparsePageSize;
MTLTexture
@required
@property(atomic, readonly) MTLTextureSparseTier sparseTextureTier;
MTLFunctionHandle
@property(atomic, readonly) MTLResourceID gpuResourceID;
MTLRenderPipelineState
@property(atomic, readonly, nullable) MTLRenderPipelineReflection *reflection;
MTLRenderPipelineState
@property(atomic, readonly) MTLSize requiredThreadsPerTileThreadgroup;
MTLRenderPipelineState
@property(atomic, readonly) MTLSize requiredThreadsPerObjectThreadgroup;
MTLRenderPipelineState
@property(atomic, readonly) MTLSize requiredThreadsPerMeshThreadgroup;
MTLTileRenderPipelineDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSize requiredThreadsPerThreadgroup;
MTLMeshRenderPipelineDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSize requiredThreadsPerObjectThreadgroup;
MTLMeshRenderPipelineDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSize requiredThreadsPerMeshThreadgroup;
MTLComputePipelineDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSize requiredThreadsPerThreadgroup;
MTLComputePipelineState
@property(atomic, readonly, nullable) MTLComputePipelineReflection *reflection;
MTLComputePipelineState
@property(atomic, readonly) MTLSize requiredThreadsPerThreadgroup;
MTLRenderPassDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLVisibilityResultType visibilityResultType;
MTLRenderPassDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL supportColorAttachmentMapping;
MTLIndirectCommandBufferDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL inheritDepthStencilState;
MTLIndirectCommandBufferDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL inheritDepthBias;
MTLIndirectCommandBufferDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL inheritDepthClipMode;
MTLIndirectCommandBufferDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL inheritCullMode;
MTLIndirectCommandBufferDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL inheritFrontFacingWinding;
MTLIndirectCommandBufferDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL inheritTriangleFillMode;
MTLIndirectCommandBufferDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) BOOL supportColorAttachmentMapping;
extern const NSErrorDomain _Nonnull MTL4CommandQueueErrorDomain
MTLBuffer
@property(atomic, readonly) MTLBufferSparseTier sparseBufferTier;
MTLDepthStencilState
@property(atomic, readonly) MTLResourceID gpuResourceID;
extern const NSErrorDomain _Nonnull MTLTensorDomain
MTLSamplerDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSamplerReductionMode reductionMode;
MTLSamplerDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) float lodBias;
MTLCompileOptions
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSize requiredThreadsPerThreadgroup;
MTLHeapDescriptor
@property(nonatomic, assign, unsafe_unretained, readwrite) MTLSparsePageSize maxCompatiblePlacementSparsePageSize;
MTL4ArgumentTableDescriptor
MTL4CounterHeapDescriptor
MTL4MachineLearningPipelineDescriptor
MTL4MachineLearningPipelineReflection
MTLLogicalToPhysicalColorAttachmentMap
MTL4StaticLinkingDescriptor
MTL4PipelineStageDynamicLinkingDescriptor
MTL4RenderPipelineDynamicLinkingDescriptor
MTL4BinaryFunctionDescriptor
MTL4SpecializedFunctionDescriptor
MTL4LibraryFunctionDescriptor
MTL4AccelerationStructureDescriptor
MTL4AccelerationStructureGeometryDescriptor
MTL4PrimitiveAccelerationStructureDescriptor
MTL4AccelerationStructureTriangleGeometryDescriptor
MTL4AccelerationStructureBoundingBoxGeometryDescriptor
MTL4AccelerationStructureMotionTriangleGeometryDescriptor
MTL4AccelerationStructureMotionBoundingBoxGeometryDescriptor
MTL4AccelerationStructureCurveGeometryDescriptor
MTL4AccelerationStructureMotionCurveGeometryDescriptor
MTL4InstanceAccelerationStructureDescriptor
MTL4IndirectInstanceAccelerationStructureDescriptor
MTLResourceViewPoolDescriptor
MTL4MeshRenderPipelineDescriptor
MTL4StitchedFunctionDescriptor
MTL4TileRenderPipelineDescriptor
MTL4CommandQueueDescriptor
MTL4ComputePipelineDescriptor
MTL4CommandAllocatorDescriptor
MTL4RenderPipelineColorAttachmentDescriptor
MTL4RenderPipelineColorAttachmentDescriptorArray
MTL4RenderPipelineBinaryFunctionsDescriptor
MTL4RenderPipelineDescriptor
MTL4PipelineDataSetSerializerDescriptor