f32T
On this page

f32T

Constant in Types

The f32 scalar type, the DSL's default numeric type: what a bare numeric literal lifts to (lift(3) is a Node<'f32'>) and what most builtins return.

import { f32T } from 'typeshade'

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

Syntax

const f32T: { readonly kind: "scalar"; readonly scalar: "f32"; }

Description

Use it to type an fn parameter, a resource or uniform field, or a struct field that must hold a native float; for emulated double precision use f64T.

In the guide

See also

Source

src/core/ir/types.ts, line 316, at commit 26de7be8

Edit this page Report a problem