Contents

makeDynamicLibrary(url:)

Creates a Metal dynamic library instance that contains the functions in the Metal library file at a URL.

Declaration

func makeDynamicLibrary(url: URL) throws -> any MTLDynamicLibrary

Parameters

  • url:

    A URL to a Metal library file (ending in .metallib).

Mentioned in

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