texture1dfT
Constant in Types
A sampled float 1D texture: a row of texels addressed by one f32, the shape a transfer function or a colour ramp takes.
import { texture1dfT } from 'typeshade/core/ir'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
const texture1dfT: { readonly kind: "texture"; readonly dim: "1d"; readonly elem: "f32"; }Description
WebGPU only:
the GLSL lowering of a 1d texture is not supported yet (Rule 10.5), so a module carrying one
needs the texture1d Capability, which the GLSL backend has no row for.
See also
Source
src/core/ir/types/texture-types.ts, line 156, at commit af54ddad5