Contents

makeDefaultLibrary(bundle:)

Creates a Metal library instance that contains the functions in a bundle’s default Metal library.

Declaration

func makeDefaultLibrary(bundle: Bundle) throws -> any MTLLibrary

Parameters

  • bundle:

    A bundle instance.

Return Value

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

See Also

Creating shader libraries