<!--
{
  "documentType" : "article",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/metal-variables",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Metal variables"
}
-->

# Metal variables

## Topics

### Global variables

[`var MTLResourceCPUCacheModeMask: UInt`](/documentation/Metal/MTLResourceCPUCacheModeMask)

[`var MTLResourceCPUCacheModeShift: Int32`](/documentation/Metal/MTLResourceCPUCacheModeShift)

[`var MTLResourceHazardTrackingModeMask: UInt`](/documentation/Metal/MTLResourceHazardTrackingModeMask)

[`var MTLResourceHazardTrackingModeShift: Int32`](/documentation/Metal/MTLResourceHazardTrackingModeShift)

[`var MTLResourceStorageModeMask: UInt`](/documentation/Metal/MTLResourceStorageModeMask)

[`var MTLResourceStorageModeShift: Int32`](/documentation/Metal/MTLResourceStorageModeShift)

[`static let iPhonePerformanceGaming: NSDeviceCertification`](/documentation/Metal/NSDeviceCertification/iPhonePerformanceGaming)

The performance gaming tier for iPhone.

[`extern NSNotificationName const NSProcessInfoPerformanceProfileDidChangeNotification;`](/documentation/Metal/NSProcessInfoPerformanceProfileDidChangeNotification)

[`static let `default`: NSProcessPerformanceProfile`](/documentation/Metal/NSProcessPerformanceProfile/default)

The default performance profile for a device.

[`static let sustained: NSProcessPerformanceProfile`](/documentation/Metal/NSProcessPerformanceProfile/sustained)

The performance profile for a device representing sustained performance.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)