READ_WRITE_STORAGE_FORMATS
On this page

READ_WRITE_STORAGE_FORMATS

Constant in Types

The formats a device takes at read_write access, which is the three single-channel 32-bit ones and no others (measured, as StorageTextureFormat describes).

import { READ_WRITE_STORAGE_FORMATS } from 'typeshade'
import { READ_WRITE_STORAGE_FORMATS } from 'typeshade/core/ir'

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

Syntax

const READ_WRITE_STORAGE_FORMATS: readonly ["r32uint", "r32sint", "r32float"]

Description

Every other format is write or read, one at a time. Tint compiles texture_storage_2d<rgba8unorm, read_write> happily, so this list is the only thing standing between that spelling and a device error the compile gate never reaches.

See also

Source

src/core/ir/types/storage-texture.ts, line 86, at commit af54ddad5

Edit this page Report a problem