Contents

init(device:)

Asynchronously prepare resources for the given device.

Declaration

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

Parameters

  • device:

    The Metal device to prepare resources using.

Discussion