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'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const texture2dfT: { readonly kind: "texture"; readonly dim: "2d"; readonly elem: "f32"; }Description
For exact
integer texels use texture2duT or texture2diT.
In the guide
See also
Source
src/core/ir/types.ts, line 582, at commit 26de7be8