Contents

makeLibrary(descriptor:)

Creates a new Metal library synchronously.

Declaration

func makeLibrary(descriptor: MTL4LibraryDescriptor) throws -> any MTLLibrary

Parameters

  • descriptor:

    A description of the library to create.

Return Value

A Metal library instance upon success, nil otherwise.