vec2fT
상수, 타입 분류
A native vec2<f32>, the most common vector type in the DSL: screen and UV coordinates and 2D positions, such as a uv: location(0, vec2fT) fragment-input field or a resolution: vec2fT uniform.
import { vec2fT } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const vec2fT: { readonly kind: "vec"; readonly n: 2; readonly elem: "f32"; }설명
Build a value with the vec2 constructor; use
vec2f64T instead when the value needs more precision than f32 offers.
관련 가이드
함께 보기
소스
src/core/ir/types.ts, 442행, 커밋 c66579bf 기준