---
title: "DeterminismKind: type in Tooling, TypeShade API reference"
description: "DeterminismKind, a type in Tooling. Why an operation's result may differ by driver, in WGSL §15.7.4's own categories plus four of TypeShade's."
url: https://typeshade.dev/api/determinismkind/
language: en
---

# `DeterminismKind`

Type in Tooling

Why an operation's result may differ by driver, in WGSL §15.7.4's own categories plus four of TypeShade's.

`import type { DeterminismKind } from 'typeshade'`

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

## Syntax

```ts
type DeterminismKind =
  'ulp' | 'absolute' | 'inherited' | 'unbounded' | 'filtered' | 'target' | 'emulated' | 'order';
```

## Description

`ulp` and `absolute` are the spec’s numeric bounds (`absolute` also covers `acos`, `asin` and `tanh`, which the spec bounds by the worse of an absolute error and an inherited formula); `inherited` is an operation the spec defines by a formula the driver may reassociate or fuse, the matrix products included; `unbounded` is a derivative or `determinant`, where the spec asks only for a pragmatically useful result; `filtered` is a texture read whose footprint, filtering and level selection are implementation-defined, a gather included; `target` is an operation WGSL settles that the GLSL ES 3.00 spelling may answer differently on some input; `emulated` is an `f64` operation, computed in `f32` pairs whose error terms a driver may fold; `order` is a floating-point reduction of a kernel function’s loop, which every tier folds in [Rule 7.2](https://typeshade.dev/reference/rules/7-2/)’s tree, so it has one answer on every tier but not the one the loop’s sequential reading gives.

## Source

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