---
title: "texture_2d: TypeShade 언어 참조에 실린 타입 이름과 그 시그니처"
description: "texture_2d (타입), TypeShade 언어 참조 항목입니다. A sampled 2D texture of f32, i32 or u32 texels, read with textureLoad…"
url: https://typeshade.dev/ko/reference/types/texture_2d/
language: ko
---

# `texture_2d`

타입

A sampled 2D texture of `f32`, `i32` or `u32` texels, read with `textureLoad`, or filtered with `textureSample` when its texels are `f32`.

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

## 구문

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

시그니처에는 앰비언트 파일이 스스로 쓰려고 선언한 타입이 나올 수 있습니다. 아래가 그 선언입니다.

**`TextureElem`**

`type TextureElem = f32 | i32 | u32`

## 매개변수

- `E` 선택 사항 `TextureElem`

## 설명

A resource, declared as `declare const t: texture_2d<f32>`.

## 예제

- [`gallery/cube-array-gather/cube-array-gather.shade.ts`](https://typeshade.dev/ko/guide/examples/cube-array-gather/)
- [`gallery/cube-env/cube-env.shade.ts`](https://typeshade.dev/ko/guide/examples/cube-env/)
- [`gallery/feedback-trail/feedback-trail.shade.ts`](https://typeshade.dev/ko/guide/examples/feedback-trail/)
- [`gallery/kernel-image-invert/kernel-image-invert.shade.ts`](https://typeshade.dev/ko/guide/examples/kernel-image-invert/)
- [`gallery/sample-branch/sample-branch.shade.ts`](https://typeshade.dev/ko/guide/examples/sample-branch/)
- [`gallery/separable-blur/separable-blur.shade.ts`](https://typeshade.dev/ko/guide/examples/separable-blur/)
- [`gallery/textured-quad/textured-quad.shade.ts`](https://typeshade.dev/ko/guide/examples/textured-quad/)

## 함께 보기

- [타입](https://typeshade.dev/ko/reference/types/)
