---
title: "storageFormatFeature(): function in Types, TypeShade API"
description: "storageFormatFeature, a function in Types. The device feature a format needs before any device will store to it, or undefined when the format is core."
url: https://typeshade.dev/api/storageformatfeature/
language: en
---

# `storageFormatFeature()`

Function in Types

The device feature a format needs before any device will store to it, or undefined when the format is core.

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

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

## Syntax

```ts
const storageFormatFeature: (
  format: StorageTextureFormat,
) => string | undefined
```

## Parameters

**`format` `StorageTextureFormat`**

## Return value

`string | undefined`

## Description

The name is WebGPU’s own, as `GPUAdapter.features` reports it, so a host can pass it straight to `requestDevice({ requiredFeatures })`.

## Source

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