samplerT
On this page

samplerT

Constant in Types

The sampler resource type.

import { samplerT } from 'typeshade'

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

Syntax

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

Description

Always declared as its own resource() binding next to a texture type (texture2dfT and its siblings); textureSample and textureSampleLevel take both. For example, resource('atlas_sampler', samplerT, { group: 0, binding: 1 }).

In the guide

See also

Source

src/core/ir/types.ts, line 664, at commit 26de7be8

Edit this page Report a problem