texture2dfT
On this page

texture2dfT

Constant in Types

A sampled 2D float texture: the ordinary single-layer binding type behind textureSample and textureLoad, for colour ramps, lookup tables and atlases (resource).

import { texture2dfT } from 'typeshade/core/ir'

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

Syntax

const texture2dfT: { readonly kind: "texture"; readonly dim: "2d"; readonly elem: "f32"; }

Description

For exact integer texels use texture2duT or texture2diT.

See also

Source

src/core/ir/types/texture-types.ts, line 10, at commit af54ddad5

Edit this page Report a problem