---
title: "textureDepth2dT: TypeShade 셰이더 API의 타입 분류 상수 참조 문서"
description: "textureDepth2dT, TypeShade API의 타입 분류에 속하는 상수입니다. 2D 깊이 텍스처입니다. 그림자 맵이 곧 이 텍스처입니다."
url: https://typeshade.dev/ko/api/texturedepth2dt/
language: ko
---

# `textureDepth2dT`

상수, 타입 분류

2D 깊이 텍스처입니다. 그림자 맵이 곧 이 텍스처입니다.

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

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

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

## 설명

자체 요소 타입이 없는 단일 채널 float입니다. 이 텍스처를 읽으면 `vec4`가 아닌 `f32`가 나옵니다.

## 소스

[`src/core/ir/types/texture-types.ts`, 107행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/texture-types.ts#L107), 커밋 af54ddad5 기준
