SamplerOptions
Interface in Runtime
What rt.sampler() makes.
import type { SamplerOptions } from 'typeshade/runtime'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
interface SamplerOptions { readonly filter?: 'nearest' | 'linear'; readonly address?: 'clamp' | 'repeat' | 'mirror'; readonly compare?: CompareFunction;}Instance properties
filteroptionalread only'nearest' | 'linear'How it magnifies, minifies and picks between mip levels:
'linear'when omitted.addressoptionalread only'clamp' | 'repeat' | 'mirror'What it reads past an edge, on every axis:
'clamp'(clamp to the edge) when omitted.compareoptionalread onlyCompareFunctionA comparison sampler, for a depth texture a shadow pass wrote: the comparison it makes.
Source
src/runtime/resources.ts, line 75, at commit af54ddad5