samplerT
Constant in Types
The sampler resource type.
import { samplerT } from 'typeshade/core/ir'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
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 }).
See also
Source
src/core/ir/types/texture-types.ts, line 92, at commit af54ddad5