---
title: "storageTexel(): function in Types, TypeShade API reference"
description: "storageTexel, a function in Types. The type of one texel of a storage texture, which its format's channel kind decides…"
url: https://typeshade.dev/api/storagetexel/
language: en
---

# `storageTexel()`

Function in Types

The type of one texel of a storage texture, which its format's channel kind decides: a …uint format loads and stores `vec4<u32>`, a …sint format `vec4<i32>`, and every other one `vec4<f32>`.

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

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

## Syntax

```ts
const storageTexel: (format: StorageTextureFormat) => TextureElem
```

## Parameters

**`format` `StorageTextureFormat`**

## Return value

`TextureElem`

## Description

Tint enforces this (`no matching call to 'textureStore(texture_storage_2d<rgba8uint, write>, vec2<i32>, vec4<f32>)'`), so a front end that checks it first can say the same thing in its own words and name the fix.

## Source

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