mat4x4fT
이 페이지에서

mat4x4fT

상수, 타입 분류

A native mat4x4<f32>, the model-view-projection or view matrix type of a typical per-frame uniform.

import { mat4x4fT } from 'typeshade'

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

구문

const mat4x4fT: { readonly kind: "mat"; readonly cols: 4; readonly rows: 4; readonly elem: "f32"; }

설명

Every matCxR<f32> is spellable — build one with matT — and this is the one with a named constant because it is the one a renderer reaches for. (It was once the only float matrix, on the recorded ground that “a 2×2 or 3×3 float matrix lays out differently under the WGSL and GLSL std140 rules”. Measured on real ANGLE and Tint, that is half right: a 2×2 does diverge and a 3×3 does not, and what actually decides is the row count — see the mat arm of ShaderType and wgslLayout.)

함께 보기

소스

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

이 페이지 편집 문제 보고