---
title: "texture2dfT: constant in Types, TypeShade API reference"
description: "texture2dfT, a constant in Types. A sampled 2D float texture: the ordinary single-layer binding type behind textureSample and textureLoad, for colour ramps…"
url: https://typeshade.dev/api/texture2dft/
language: en
---

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

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

## Description

For exact integer texels use [`texture2duT`](https://typeshade.dev/api/texture2dut/) or [`texture2diT`](https://typeshade.dev/api/texture2dit/).

## See also

- [`textureSample`](https://typeshade.dev/api/texturesample/)
- [`textureLoad`](https://typeshade.dev/api/textureload/)
- [`texture2duT`](https://typeshade.dev/api/texture2dut/)
- [`texture2diT`](https://typeshade.dev/api/texture2dit/)

## Source

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