---
title: "texture2dArrayfT: constant in Types, TypeShade API reference"
description: "texture2dArrayfT, a constant in Types. A sampled 2D array texture: one texture object with N independently addressable layers."
url: https://typeshade.dev/api/texture2darrayft/
language: en
---

# `texture2dArrayfT`

Constant in Types

A sampled 2D array texture: one texture object with N independently addressable layers.

`import { texture2dArrayfT } from 'typeshade/core/ir'`

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

## Syntax

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

## Description

The layer is an argument of each sample call, so N layers cost one binding slot and one bind-group switch. Core in both targets, so it needs no [`Capability`](https://typeshade.dev/api/capability/).

## See also

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

## Source

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