Initializer

init(device:)

Initializes a new texture loader object.

Declaration

init(device: MTLDevice)

Parameters

device

The Metal device to create Metal textures with.

Return Value

An initialized texture loader object.

See Also

Creating a Texture Loader

var device: MTLDevice

The device object that the texture loader uses to create textures.