storageTexel()
함수, 타입 분류
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'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const storageTexel: (format: StorageTextureFormat) => TextureElem매개변수
formatStorageTextureFormat
반환값
설명
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.
소스
src/core/ir/types.ts, 135행, 커밋 c66579bf 기준