---
title: "texture2duT: TypeShade 셰이더 API의 타입 분류 상수 참조 문서"
description: "texture2duT, TypeShade API의 타입 분류에 속하는 상수입니다. 부호 없는 정수 2D 텍스처입니다. 작성 API가 사용하는 타입 키와 타입 기술자입니다. 타입 검사와 값 생성에 쓰이는 정의를 다룹니다."
url: https://typeshade.dev/ko/api/texture2dut/
language: ko
---

# `texture2duT`

상수, 타입 분류

부호 없는 정수 2D 텍스처입니다.

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

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

## 구문

```ts
const texture2duT: { readonly kind: "texture"; readonly dim: "2d"; readonly elem: "u32"; }
```

## 설명

이 텍스처는 [`textureLoad`](https://typeshade.dev/ko/api/textureload/)로 읽습니다. 이 함수는 `vec4<u32>`를 반환합니다. 정확한 32비트 값을 담으므로, GPU에 변경 없이 전달되어야 하는 id, 패킹된 색상, 비트필드 값을 조회하는 데 알맞습니다. 필터링할 수 없습니다. 이 텍스처에 [`textureSample`](https://typeshade.dev/ko/api/texturesample/)을 쓰면 `tsc` 오류가 납니다([`TextureElem`](https://typeshade.dev/ko/api/textureelem/) 참조).

## 함께 보기

- [`textureLoad`](https://typeshade.dev/ko/api/textureload/)
- [`textureSample`](https://typeshade.dev/ko/api/texturesample/)
- [`TextureElem`](https://typeshade.dev/ko/api/textureelem/)

## 소스

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