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'import { ALL_STORAGE_TEXTURE_FORMATS } from 'typeshade/core/ir'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
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/storage-texture.ts, line 56, at commit af54ddad5