DeterminismAccuracy
On this page

DeterminismAccuracy

Type in Tooling

What accuracyOf says about one operation: exact when WGSL gives it one answer and both targets agree, otherwise the kind of room left and its bound in words, with a note where the GLSL ES 3.00 spelling matters.

import type { DeterminismAccuracy } from 'typeshade'

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

Syntax

type DeterminismAccuracy =
| { readonly kind: 'exact'; readonly note?: string }
| {
readonly kind: Exclude<DeterminismKind, 'emulated' | 'order'>;
readonly bound: string;
readonly note?: string;
};

Description

An exact answer carries a note where the one answer holds only for some inputs: a bitcast of a NaN or a subnormal f32 (change 0045).

See also

Source

src/core/passes/determinism/types.ts, line 28, at commit af54ddad5

Edit this page Report a problem