One Logo Pool Ball
Metal · IOS API REFERENCE

MTLDevice

protocol · iOS 8.0+ · SDK 27.1

protocol MTLDevice : NSObjectProtocol, Sendable

Members (7)

method · iOS 8.0+

makeLibrary

Swift declaration
func makeLibrary(data: DispatchData) throws -> any MTLLibrary
method · iOS 14.0+

sampleTimestamps

Swift declaration
func sampleTimestamps() -> (cpu: MTLTimestamp, gpu: MTLTimestamp)
method · iOS 16.0+

makeRenderPipelineState

Swift declaration
func makeRenderPipelineState(descriptor: MTLMeshRenderPipelineDescriptor, options: MTLPipelineOption) throws -> (any MTLRenderPipelineState, MTLRenderPipelineReflection?)
method · iOS 8.0+

makeRenderPipelineState

Swift declaration
func makeRenderPipelineState(descriptor: MTLRenderPipelineDescriptor, options: MTLPipelineOption) throws -> (any MTLRenderPipelineState, MTLRenderPipelineReflection?)
method · iOS 11.0+

makeRenderPipelineState

Swift declaration
func makeRenderPipelineState(tileDescriptor: MTLTileRenderPipelineDescriptor, options: MTLPipelineOption) throws -> (any MTLRenderPipelineState, MTLRenderPipelineReflection?)
method · iOS 9.0+

makeComputePipelineState

Swift declaration
func makeComputePipelineState(descriptor: MTLComputePipelineDescriptor, options: MTLPipelineOption) throws -> (any MTLComputePipelineState, MTLComputePipelineReflection?)
method · iOS 11.0+

getDefaultSamplePositions

Swift declaration
func getDefaultSamplePositions(sampleCount: Int) -> [MTLSamplePosition]

Skipped declarations

No declarations were skipped in this snapshot.

All Metal types →