IntKey
On this page

IntKey

Type in Types

The integer keys, i32 and u32 scalars and vectors, for the builtins whose WGSL and GLSL domain includes integers: abs, min, max and clamp.

import type { IntKey } from 'typeshade'

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

Syntax

type IntKey = 'i32' | 'u32' | `vec${number}<i32>` | `vec${number}<u32>`;

Description

sign is defined over floats and signed integers only, so it takes i32 and rejects u32.

Source

src/core/ir/node.ts, line 1298, at commit 26de7be8

Edit this page Report a problem