Contents

device

The device object that created the texture.

Declaration

var device: any MTLDevice { get }

Discussion

A texture is always associated with the MTLDevice that created it and can be used only with that device.

See Also

Identifying the shared texture handle