---
title: "StorageTextureAccess: type in Types, TypeShade API reference"
description: "StorageTextureAccess, a type in Types. How a shader may touch a storage texture."
url: https://typeshade.dev/api/storagetextureaccess/
language: en
---

# `StorageTextureAccess`

Type in Types

How a shader may touch a storage texture.

`import type { StorageTextureAccess } from 'typeshade'`
`import type { StorageTextureAccess } from 'typeshade/core/ir'`

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

## Syntax

```ts
type StorageTextureAccess = 'write' | 'read' | 'read_write';
```

## Description

WGSL spells these `write`, `read` and `read_write`; WebGPU’s bind group layout spells the same three `write-only`, `read-only` and `read-write`, which is what [`storageTextureLayoutAccess`](https://typeshade.dev/api/storagetexturelayoutaccess/) converts to.

## See also

- [`storageTextureLayoutAccess`](https://typeshade.dev/api/storagetexturelayoutaccess/)

## Source

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