---
title: "f64GuardOne(): IR builder function in typeshade/core/ir"
description: "f64GuardOne, an IR builder function in typeshade/core/ir. The anti-fast-math guard value of the f64 emulation: a 1.0 the GPU compiler cannot see through…"
url: https://typeshade.dev/api/f64guardone/
language: en
---

# `f64GuardOne()`

Function in Builtins

The anti-fast-math guard value of the `f64` emulation: a 1.0 the GPU compiler cannot see through, emitted per target as a texel fetch from the guard texture that fp64Guard declares.

`import { f64GuardOne } from 'typeshade/core/ir'`

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

## Syntax

```ts
const f64GuardOne: () => Node<"f32">
```

## Return value

`Node<'f32'>`

## Description

The CPU evaluation returns exactly 1. The `f64` emulation pass inserts it on its own; authoring code has no reason to call it.

## Targets

| Target | Support | Notes |
| --- | --- | --- |
| WGSL (WebGPU) | Supported | `textureLoad(_fp64, vec2<i32>(0, 0), 0).x`. |
| GLSL ES 3.00 (WebGL2) | Supported | `texelFetch(_fp64, ivec2(0, 0), 0).x`. |
| CPU oracle | Supported | Evaluated in `f64` by the oracle. |

## Source

[`src/core/ir/node.ts`, line 1921](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L1921), at commit af54ddad5
