---
title: "storageTextureLayoutAccess(): function in Types, TypeShade"
description: "storageTextureLayoutAccess, a function in Types. What WebGPU's GPUStorageTextureBindingLayout.access calls a WGSL access mode."
url: https://typeshade.dev/api/storagetexturelayoutaccess/
language: en
---

# `storageTextureLayoutAccess()`

Function in Types

What WebGPU's GPUStorageTextureBindingLayout.access calls a WGSL access mode.

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

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

## Syntax

```ts
const storageTextureLayoutAccess: (
  access: StorageTextureAccess,
) => "write-only" | "read-only" | "read-write"
```

## Parameters

**`access` `StorageTextureAccess`**

## Return value

`'write-only' | 'read-only' | 'read-write'`

## Description

The two vocabularies differ by a hyphen and a word, and a host passing the WGSL spelling straight through gets a validation error, so reflection carries the host’s spelling.

## Source

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