texture_2d
타입
A sampled 2D texture of f32, i32 or u32 texels, read with textureLoad, or filtered with textureSample when its texels are f32.
시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.
구문
type texture_2d<E extends TextureElem = f32> = { readonly [textureTag]: readonly [E, false] }시그니처에는 앰비언트 파일이 스스로 쓰려고 선언한 타입이 나올 수 있습니다. 아래가 그 선언입니다.
TextureElemtype TextureElem = f32 | i32 | u32
매개변수
-
E선택 사항TextureElem
설명
A resource, declared as declare const t: texture_2d<f32>.
예제
gallery/cube-array-gather/cube-array-gather.shade.tsgallery/cube-env/cube-env.shade.tsgallery/feedback-trail/feedback-trail.shade.tsgallery/kernel-image-invert/kernel-image-invert.shade.tsgallery/sample-branch/sample-branch.shade.tsgallery/separable-blur/separable-blur.shade.tsgallery/textured-quad/textured-quad.shade.ts