<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSHintTemporaryMemoryHighWaterMark(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@F@MPSHintTemporaryMemoryHighWaterMark"
  },
  "title" : "MPSHintTemporaryMemoryHighWaterMark(_:_:)"
}
-->

# MPSHintTemporaryMemoryHighWaterMark(_:_:)

Triggers Metal Performance Shaders to prefetch a Metal heap of the indicated size into its internal cache.

```
func MPSHintTemporaryMemoryHighWaterMark(_ cmdBuf: any MTLCommandBuffer, _ bytes: Int)
```

---

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)