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.
Initializes a new allocator object.
init(device: any MTLDevice)The Metal device on which to create buffers.
An initialized allocator object.