---
title: "PORTABLE_INTRINSICS: constant in Backends, TypeShade API"
description: "PORTABLE_INTRINSICS, a constant in Backends. The builtin ids that spell identically on both targets, such as sin, dot and clamp."
url: https://typeshade.dev/api/portableintrinsics/
language: en
---

# `PORTABLE_INTRINSICS`

Constant in Backends

The builtin ids that spell identically on both targets, such as sin, dot and clamp.

`import { PORTABLE_INTRINSICS } from 'typeshade'`

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

## Syntax

```ts
const PORTABLE_INTRINSICS: ReadonlySet<string>
```

## Description

The builtin ids that spell identically on both targets, such as `sin`, `dot` and `clamp`. These carry no [`INTRINSICS`](https://typeshade.dev/api/intrinsics/) entry and fall through [`spellIntrinsic`](https://typeshade.dev/api/spellintrinsic/) as the plain `name(args)` form. `spellIntrinsic` never reads this set; it exists so that [`isKnownIntrinsic`](https://typeshade.dev/api/isknownintrinsic/) can tell a builtin known to be identical from an id nobody has classified, a distinction [`fp64Lower`](https://typeshade.dev/api/fp64lower/) relies on when it checks which builtins may be applied to `f64` values. Add a builtin here only when its spelling is the same in WGSL and GLSL ES 3.00; a builtin whose spelling differs belongs in `INTRINSICS`, since listing it here would emit the same text on both targets and one of them would be wrong.

## See also

- [`INTRINSICS`](https://typeshade.dev/api/intrinsics/)
- [`spellIntrinsic`](https://typeshade.dev/api/spellintrinsic/)
- [`isKnownIntrinsic`](https://typeshade.dev/api/isknownintrinsic/)
- [`fp64Lower`](https://typeshade.dev/api/fp64lower/)

## Source

[`src/core/intrinsics.ts`, line 1164](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/intrinsics.ts#L1164), at commit af54ddad5
