Contents

makeDynamicLibrary(library:)

Creates a Metal dynamic library instance from a Metal library instance.

Declaration

func makeDynamicLibrary(library: any MTLLibrary) throws -> any MTLDynamicLibrary

Parameters

Return Value

A new MTLDynamicLibrary instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.

See Also

Creating dynamic shader libraries