Instance Property

recommendedMaxWorkingSetSize

An approximation of how much memory, in bytes, this device can use with good performance.

Required.

Declaration

var recommendedMaxWorkingSetSize: UInt64 { get }

Discussion

Performance may be improved by keeping the total size of all resources and heaps associated with this device object less than this threshold. Going above the threshold may incur a performance penalty.

See Also

Querying Memory Availability and Limits

var currentAllocatedSize: Int

The current size, in bytes, of all resources allocated on this device for this process.

Required.

var maxThreadgroupMemoryLength: Int

The maximum threadgroup memory available to a compute kernel, in bytes.

Required.