ALL_STORAGE_TEXTURE_FORMATS
On this page

ALL_STORAGE_TEXTURE_FORMATS

Constant in Types

Every StorageTextureFormat, as a runtime value: the list a front end validates a written name against and a doc generator iterates.

import { ALL_STORAGE_TEXTURE_FORMATS } from 'typeshade'

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

Syntax

const ALL_STORAGE_TEXTURE_FORMATS: readonly ["rgba8unorm", "rgba8snorm", "rgba8uint", "rgba8sint", "rgba16uint", "rgba16sint", "rgba16float", "r32uint", "r32sint", "r32float", "rg32uint", "rg32sint", "rg32float", "rgba32uint", "rgba32sint", "rgba32float", "bgra8unorm"]

Description

A union type has no runtime form, so the list is written out and satisfies keeps it in step.

See also

Source

src/core/ir/types.ts, line 75, at commit 26de7be8

Edit this page Report a problem