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'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
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.
In the guide
See also
Source
src/core/ir/types.ts, line 405, at commit 26de7be8