---
title: "DeterminismEntry: interface in Tooling, TypeShade API"
description: "DeterminismEntry, an interface in Tooling. One row of determinismReport: an operation the module uses whose result may differ by driver, with the spec's bound…"
url: https://typeshade.dev/api/determinismentry/
language: en
---

# `DeterminismEntry`

Interface in Tooling

One row of determinismReport: an operation the module uses whose result may differ by driver, with the spec's bound, how many times it occurs and where, in declaration order.

`import type { DeterminismEntry } from 'typeshade'`

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

## Syntax

```ts
interface DeterminismEntry {
  readonly op: string;
  readonly elem: 'f32' | 'f64';
  readonly kind: DeterminismKind;
  readonly accuracy: string;
  readonly count: number;
  readonly where: readonly string[];
  readonly note?: string;
}
```

## Description

An operation used on `f32` and on emulated `f64` is two rows.

## Instance properties

**`op` read only `string`**

The operation as the IR names it: a builtin id (`sin`, `fma`, `textureSample`), a binary operator (`/`, `%`, and for `f64` every arithmetic operator), or a matrix product (`mat * vec`, `vec * mat`, `mat * mat`), which is a sum of products and not the component-wise `*`.

**`elem` read only `'f32' | 'f64'`**

The float the operation computes in: native `f32`, or emulated `f64`. An operation whose result is not a float is listed under the float it reads: a `pack`’s argument, and the coordinate of a `textureGather` on an integer texture, which is `f32`.

**`kind` read only `DeterminismKind`**

Why the result may differ.

**`accuracy` read only `string`**

The bound in words, from WGSL §15.7.4 for `f32`, from the emulation for `f64`, and from [Rule 7.2](https://typeshade.dev/reference/rules/7-2/)’s tree for an `order` row.

**`count` read only `number`**

How many times the operation occurs in the module.

**`where` read only `readonly string[]`**

Where it occurs: the module constants, module variables and functions whose initializer or body holds it, by name, in declaration order, each once.

**`note` optional read only `string`**

What the GLSL ES 3.00 spelling does differently, when that matters.

## See also

- [`determinismReport`](https://typeshade.dev/api/determinismreport/)

## Source

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