Contents

storageMode

The storage mode for the heaps you create with this descriptor.

Declaration

var storageMode: MTLStorageMode { get set }

Discussion

For devices with Apple silicon, you can create a heap with either the MTLStorageMode.private or the MTLStorageMode.shared storage mode. However, you can only create heaps with private storage on macOS devices without Apple silicon.

The resources you allocate from a heap inherit that heap’s storage mode. This property’s default value is MTLStorageMode.private.

See Also

Configuring a heap