Contents

init(device:)

Asynchronously compiles the shared shader and pipeline resources for the given device.

Declaration

nonisolated(nonsending) init(device: any MTLDevice) async throws

Parameters

  • device:

    The Metal device to allocate and compile resources on.

Discussion