---
title: "DeterminismAccuracy: type in Tooling, TypeShade API"
description: "DeterminismAccuracy, a type in Tooling. What accuracyOf says about one operation: exact when WGSL gives it one answer and both targets agree…"
url: https://typeshade.dev/api/determinismaccuracy/
language: en
---

# `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

```ts
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

- [`accuracyOf`](https://typeshade.dev/api/accuracyof/)

## Source

[`src/core/passes/determinism/types.ts`, line 28](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/determinism/types.ts#L28), at commit af54ddad5
