---
title: "texture_depth_2d: type in the TypeShade language reference"
description: "texture_depth_2d, a type in the TypeShade language reference. A 2D depth texture, single-channel float…"
url: https://typeshade.dev/reference/types/texture_depth_2d/
language: en
---

# `texture_depth_2d`

Type

A 2D depth texture, single-channel float, read with `textureSampleCompare` through a `sampler_comparison` or with `textureLoad`.

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

## Syntax

```ts
type texture_depth_2d = { readonly [depthTextureTag]: false }
```

## Description

Declared bare as `declare const shadowMap: texture_depth_2d`.

## Examples

- [`gallery/cube-array-gather/cube-array-gather.shade.ts`](https://typeshade.dev/guide/examples/cube-array-gather/)
- [`gallery/shadow-compare/shadow-compare.shade.ts`](https://typeshade.dev/guide/examples/shadow-compare/)

## See also

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