MTLHazardTrackingMode.default
An option that applies the default tracking behavior in Metal based on the resource or heap type you’re creating.
Declaration
case `default`Discussion
When you choose the MTLHazardTrackingMode.default option, Metal assigns a tracking mode based on the type you’re creating:
The default tracking mode for an MTLHeap is MTLHazardTrackingMode.untracked because heaps typically contain many resources that you manage manually.
The default tracking mode for a type that inherits MTLResource is MTLHazardTrackingMode.tracked because individual resources benefit from automatic hazard tracking.
For example, Metal tracks hazards for MTLBuffer and MTLTexture instances when you create them with MTLHazardTrackingMode.default.
For more information, see MTLHazardTrackingMode.