storageTexel()
Function in Types
The type of one texel of a storage texture, which its format's channel kind decides: a …uint format loads and stores vec4<u32>, a …sint format vec4<i32>, and every other one vec4<f32>.
import { storageTexel } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const storageTexel: (format: StorageTextureFormat) => TextureElemParameters
formatStorageTextureFormat
Return value
Description
Tint enforces this (no matching call to 'textureStore(texture_storage_2d<rgba8uint, write>, vec2<i32>, vec4<f32>)'), so a front end
that checks it first can say the same thing in its own words and name the fix.
Source
src/core/ir/types.ts, line 135, at commit 26de7be8