Contents

init(device:)

Initializes with a specific GPU to render into.

Declaration

init(device: any MTLDevice)

Parameters

  • device:

    A Metal device.

Return Value

A new renderer object.

Discussion

Pass in the same Metal device that is associated to the Metal command buffer passed into render(withViewport:commandBuffer:renderPassDescriptor:).

See Also

First Steps