storageTexel
On this page

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/core/ir'

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

Syntax

const storageTexel: (format: StorageTextureFormat) => TextureElem

Parameters

format StorageTextureFormat

Return value

TextureElem

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/storage-texture.ts, line 116, at commit af54ddad5

Edit this page Report a problem