texture_2d
On this page

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.

TextureElem
type TextureElem = f32 | i32 | u32

Parameters

  • E optional TextureElem

Description

A resource, declared as declare const t: texture_2d<f32>.

Examples

See also

Edit this page Report a problem