---
title: "Sampler: interface in Runtime, TypeShade API reference"
description: "Sampler, an interface in Runtime. A sampler the runtime binds by name."
url: https://typeshade.dev/api/sampler/
language: en
---

# `Sampler`

Interface in Runtime

A sampler the runtime binds by name.

`import type { Sampler } from 'typeshade/runtime'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
interface Sampler {
  readonly sampler: object;
}
```

## Description

`sampler` is the `GPUSampler` itself.

## Instance properties

**`sampler` read only `object`**

Escape hatch ([Rule 11.17](https://typeshade.dev/reference/rules/11-17/)): the `GPUSampler` or `WebGLSampler` the sampler holds.

## Source

[`src/runtime/resources.ts`, line 85](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/resources.ts#L85), at commit af54ddad5
