---
title: "textureDepth2dT: constant in Types, TypeShade API reference"
description: "textureDepth2dT, a constant in Types. A 2D depth texture, the texture a shadow map is."
url: https://typeshade.dev/api/texturedepth2dt/
language: en
---

# `textureDepth2dT`

Constant in Types

A 2D depth texture, the texture a shadow map is.

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

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

## Syntax

```ts
const textureDepth2dT: { readonly kind: "depth-texture"; readonly dim: "2d"; }
```

## Description

Single-channel float with no element type of its own, and a read of one yields `f32`, not `vec4`.

## Source

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