Contents

init(device:)

Initializes a new allocator object.

Declaration

init(device: any MTLDevice)

Parameters

  • device:

    The Metal device on which to create buffers.

Return Value

An initialized allocator object.