SamplerOptions
On this page

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 26de7be8.

Syntax

interface SamplerOptions {
readonly filter?: 'nearest' | 'linear';
readonly address?: 'clamp' | 'repeat' | 'mirror';
readonly compare?: | 'less' | 'less-equal' | 'greater' | 'greater-equal' | 'equal' | 'not-equal' | 'always' | 'never';
}

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 only | 'less' | 'less-equal' | 'greater' | 'greater-equal' | 'equal' | 'not-equal' | 'always' | 'never'

A comparison sampler, for a depth texture a shadow pass wrote: the comparison it makes.

Source

src/runtime/resources.ts, line 75, at commit 26de7be8

Edit this page Report a problem