---
title: "SUBGROUP_INTRINSICS: constant in Backends, TypeShade API"
description: "SUBGROUP_INTRINSICS, a constant in Backends. The subgroup built-in functions of WGSL's subgroups extension."
url: https://typeshade.dev/api/subgroupintrinsics/
language: en
---

# `SUBGROUP_INTRINSICS`

Constant in Backends

The subgroup built-in functions of WGSL's subgroups extension.

`import { SUBGROUP_INTRINSICS } from 'typeshade'`

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

## Syntax

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

## Description

On WGSL each is its own call; on GLSL ES 3.00 and on the CPU oracle a subgroup is one invocation (Rule 11.21), so `passes/subgroups-one-lane.ts` rewrites each call before the GLSL writer runs and the oracle’s table gives each its one-lane value. Exported so the capability pass derives `subgroups` from a call, the uniformity walk reads the set, and the front end routes one.

## Source

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