---
title: "samplerT: TypeShade 셰이더 API의 타입 분류 상수 참조 문서"
description: "samplerT, TypeShade API의 타입 분류에 속하는 상수입니다. 샘플러 리소스 타입입니다. 작성 API가 사용하는 타입 키와 타입 기술자입니다. 타입 검사와 값 생성에 쓰이는 정의를 다룹니다."
url: https://typeshade.dev/ko/api/samplert/
language: ko
---

# `samplerT`

상수, 타입 분류

샘플러 리소스 타입입니다.

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

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

## 구문

```ts
const samplerT: { readonly kind: "sampler"; }
```

## 설명

항상 텍스처 타입([`texture2dfT`](https://typeshade.dev/ko/api/texture2dft/) 및 그 계열)과 나란히, 자체 `resource()` 바인딩으로 선언합니다. [`textureSample`](https://typeshade.dev/ko/api/texturesample/)과 [`textureSampleLevel`](https://typeshade.dev/ko/api/texturesamplelevel/)은 둘을 모두 받습니다. 예를 들어 `resource('atlas_sampler', samplerT, { group: 0, binding: 1 })`처럼 씁니다.

## 함께 보기

- [`texture2dfT`](https://typeshade.dev/ko/api/texture2dft/)
- [`textureSample`](https://typeshade.dev/ko/api/texturesample/)
- [`textureSampleLevel`](https://typeshade.dev/ko/api/texturesamplelevel/)

## 소스

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