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'

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

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.ts, line 105, at commit 26de7be8

Edit this page Report a problem