FloatKey
On this page

FloatKey

Type in Types

The f32-family keys, 'f32' and the f32 vectors: the argument domain of the float-only component-wise builtins.

import type { FloatKey } from 'typeshade'

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

Syntax

type FloatKey = 'f32' | `vec${number}<f32>`;

Description

WGSL and GLSL ES 3.00 define those builtins over floats only, so an i32, u32 or bool node is rejected at tsc.

Source

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

Edit this page Report a problem