---
title: "texture_2d_array: type in the TypeShade language reference"
description: "texture_2d_array, a type in the TypeShade language reference. An array of sampled 2D textures in one binding, picked by an integer layer after the coordinate."
url: https://typeshade.dev/reference/types/texture_2d_array/
language: en
---

# `texture_2d_array`

Type

An array of sampled 2D textures in one binding, picked by an integer layer after the coordinate.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
type texture_2d_array<E extends TextureElem = f32> = { readonly [textureTag]: readonly [E, true] }
```

A signature may name a type the ambient file declares for its own use. These are those declarations.

**`TextureElem`**

`type TextureElem = f32 | i32 | u32`

## Parameters

- `E` optional `TextureElem`

## Description

Declared as `declare const t: texture_2d_array<f32>`.

## See also

- [Types](https://typeshade.dev/reference/types/)
