Contents

device

The GPU device that indirectly owns the command buffer because you create it from a command queue the device also owns.

Declaration

var device: any MTLDevice { get }

Discussion

The command buffer can only work with other instances that device creates, directly or indirectly, such as buffers and textures.

See Also

Identifying the command buffer