---
title: hazardTrackingMode
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlresource/hazardtrackingmode
---

# hazardTrackingMode

A mode that determines whether Metal tracks and synchronizes resource access.

## Declaration

```swift
var hazardTrackingMode: MTLHazardTrackingMode { get }
```

## Discussion

Discussion This value can be either MTLHazardTrackingMode.untracked or MTLHazardTrackingMode.tracked.

## See Also

### Reading memory and storage properties

- [cpuCacheMode](metal/mtlresource/cpucachemode.md)
- [storageMode](metal/mtlresource/storagemode.md)
- [resourceOptions](metal/mtlresource/resourceoptions.md)
- [MTLCPUCacheMode](metal/mtlcpucachemode.md)
- [MTLStorageMode](metal/mtlstoragemode.md)
- [MTLHazardTrackingMode](metal/mtlhazardtrackingmode.md)
