---
title: "Fp64FlavorSignals: interface in Emulated f64, TypeShade API"
description: "Fp64FlavorSignals, an interface in Emulated f64. The device-identification signals recommendFp64Flavor and isAppleGpu read to pick the df64 flavour a device…"
url: https://typeshade.dev/api/fp64flavorsignals/
language: en
---

# `Fp64FlavorSignals`

Interface in Emulated `f64`

The device-identification signals recommendFp64Flavor and isAppleGpu read to pick the df64 flavour a device needs: 'integer' on Apple GPUs, where Metal runs underneath, and 'float' everywhere else.

`import type { Fp64FlavorSignals } from 'typeshade'`
`import type { Fp64FlavorSignals } from 'typeshade/runtime'`

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

## Syntax

```ts
interface Fp64FlavorSignals {
  readonly adapterInfo?: { readonly vendor?: string; readonly architecture?: string } | null;
  readonly rendererString?: string | null;
  readonly userAgent?: string | null;
}
```

## Description

The device-identification signals [`recommendFp64Flavor`](https://typeshade.dev/api/recommendfp64flavor/) and [`isAppleGpu`](https://typeshade.dev/api/isapplegpu/) read to pick the df64 flavour a device needs: `'integer'` on Apple GPUs, where Metal runs underneath, and `'float'` everywhere else (see `Fp64Flavor` for why Apple’s shader compiler forces that split). This pure selector does not query a GPU, so its caller collects whatever it has, a WebGPU adapter’s `info`, a WebGL2 `UNMASKED_RENDERER_WEBGL` string, `navigator.userAgent`, and passes it here. Every field is optional, and any single Apple-identifying signal is enough to select `'integer'`. Passing none of them selects `'float'`, so an Apple device whose signals were never collected silently gets the wrong flavour: df64 still compiles and runs, but its extended precision collapses to plain `f32` once the shader compiler reassociates the error terms the float flavour depends on.

## Instance properties

**`adapterInfo` optional read only `{ readonly vendor?: string; readonly architecture?: string } | null`**

`GPUAdapter.info` (or any {vendor, architecture} shaped object). Apple reports vendor ‘apple’ (architecture like ‘apple’ / ‘metal-3’).

**`rendererString` optional read only `string | null`**

The WebGL `UNMASKED_RENDERER_WEBGL` (or RENDERER) string. Apple devices read like ‘ANGLE (Apple, ANGLE Metal Renderer: Apple M1, Unspecified Version)’ or ‘Apple GPU’.

**`userAgent` optional read only `string | null`**

`navigator.userAgent`, the fallback when the GPU strings are masked (iOS Safari always runs Metal underneath).

## See also

- [`recommendFp64Flavor`](https://typeshade.dev/api/recommendfp64flavor/)
- [`isAppleGpu`](https://typeshade.dev/api/isapplegpu/)

## Source

[`src/core/fp64/flavor-select.ts`, line 38](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/fp64/flavor-select.ts#L38), at commit af54ddad5
