---
title: "READ_WRITE_STORAGE_FORMATS: constant in Types, TypeShade API"
description: "READ_WRITE_STORAGE_FORMATS, a constant in Types. The formats a device takes at read_write access…"
url: https://typeshade.dev/api/readwritestorageformats/
language: en
---

# `READ_WRITE_STORAGE_FORMATS`

Constant in Types

The formats a device takes at read\_write access, which is the three single-channel 32-bit ones and no others (measured, as StorageTextureFormat describes).

`import { READ_WRITE_STORAGE_FORMATS } from 'typeshade'`
`import { READ_WRITE_STORAGE_FORMATS } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const READ_WRITE_STORAGE_FORMATS: readonly ["r32uint", "r32sint", "r32float"]
```

## Description

Every other format is `write` or `read`, one at a time. Tint compiles `texture_storage_2d<rgba8unorm, read_write>` happily, so this list is the only thing standing between that spelling and a device error the compile gate never reaches.

## See also

- [`StorageTextureFormat`](https://typeshade.dev/api/storagetextureformat/)

## Source

[`src/core/ir/types/storage-texture.ts`, line 86](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/storage-texture.ts#L86), at commit af54ddad5
