---
title: storageMode
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlresource/storagemode
---

# storageMode

The location and access permissions of the resource.

## Declaration

```swift
var storageMode: MTLStorageMode { get }
```

## Mentioned in

Setting resource storage modes Synchronizing a managed resource in macOS

## Discussion

Discussion The storage mode is set when you create the resource and cannot be changed.

## See Also

### Reading memory and storage properties

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