texture_2d
Type
A sampled 2D texture of f32, i32 or u32 texels, read with textureLoad, or filtered with textureSample when its texels are f32.
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
Syntax
type texture_2d<E extends TextureElem = f32> = { readonly [textureTag]: readonly [E, false] }A signature may name a type the ambient file declares for its own use. These are those declarations.
TextureElemtype TextureElem = f32 | i32 | u32
Parameters
-
EoptionalTextureElem
Description
A resource, declared as declare const t: texture_2d<f32>.
Examples
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