---
title: "texture1dfT: constant in Types, TypeShade API reference"
description: "texture1dfT, a 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."
url: https://typeshade.dev/api/texture1dft/
language: en
---

# `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

```ts
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](https://typeshade.dev/reference/rules/10-5/)), so a module carrying one needs the `texture1d` [`Capability`](https://typeshade.dev/api/capability/), which the GLSL backend has no row for.

## See also

- [`Capability`](https://typeshade.dev/api/capability/)

## Source

[`src/core/ir/types/texture-types.ts`, line 156](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/texture-types.ts#L156), at commit af54ddad5
