i32T
이 페이지에서

i32T

상수, 타입 분류

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'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

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

설명

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

관련 가이드

함께 보기

소스

src/core/ir/types.ts, 405행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고