---
title: "sampler: \"use typeshade\" 파일에서 쓰는 타입 이름 하나, TypeShade 언어 참조"
description: "sampler (타입), TypeShade 언어 참조 항목입니다. A sampler: how a sampled texture is filtered and addressed when textureSample reads it."
url: https://typeshade.dev/ko/reference/types/sampler/
language: ko
---

# `sampler`

타입

A sampler: how a sampled texture is filtered and addressed when `textureSample` reads it.

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

## 구문

```ts
type sampler = { readonly [samplerTag]: true }
```

## 설명

A resource with no type argument, declared bare as `declare const smp: sampler`.

## 예제

- [`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/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/)
