---
title: "WRITE_ONLY_STORAGE_FORMATS: constant in Types, TypeShade API"
description: "WRITE_ONLY_STORAGE_FORMATS, a constant in Types. The formats a device takes at write and at no other access mode, which today is bgra8unorm alone."
url: https://typeshade.dev/api/writeonlystorageformats/
language: en
---

# `WRITE_ONLY_STORAGE_FORMATS`

Constant in Types

The formats a device takes at write and at no other access mode, which today is bgra8unorm alone.

`import { WRITE_ONLY_STORAGE_FORMATS } from 'typeshade'`
`import { WRITE_ONLY_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 WRITE_ONLY_STORAGE_FORMATS: readonly ["bgra8unorm"]
```

## Description

Every other [`StorageTextureFormat`](https://typeshade.dev/api/storagetextureformat/) loads as well as stores, and the three in [`READ_WRITE_STORAGE_FORMATS`](https://typeshade.dev/api/readwritestorageformats/) do both through one binding.

Measured, on two Chromium builds with every adapter feature requested: `bgra8unorm` at `read-only` and at `read-write` is “Texture format TextureFormat::BGRA8Unorm does not support storage texture access”, while `write-only` builds. Tint compiles all three, so this list is the only thing between the two spellings and a device error no shader compiler reaches.

## See also

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

## Source

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