i32T
On this page

i32T

Constant in Types

The i32 scalar type, the DSL's signed-integer type: the result type of the i32(/api/i32/) cast, and the type a non-integer matchExpr scrutinee is cast to before emit, since WGSL's switch only accepts integer scrutinees.

import { i32T } from 'typeshade/core/ir'

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

Syntax

const i32T: { readonly kind: "scalar"; readonly scalar: "i32"; }

Description

Use it for signed-integer fn parameters and fields; for an unsigned count or index, prefer u32T.

See also

Source

src/core/ir/types/scalar-types.ts, line 18, at commit af54ddad5

Edit this page Report a problem