texture_1d
On this page

texture_1d

Type

A sampled 1D texture, looked up by one f32 coordinate, as a colour ramp is.

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

Syntax

type texture_1d<E extends TextureElem = f32> = { readonly [textureTag]: readonly [E, '1d'] }

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

Declared as declare const t: texture_1d<f32>; GLSL ES 3.00 has no form for it, so it derives the texture1d capability and runs on WGSL only.

Examples

See also

Edit this page Report a problem