mat3x2f
이 페이지에서

mat3x2f

함수

Builds a mat3x2f, the same type as mat3x2 under WGSL's predeclared alias, in the same four ways: from 3 vec2 columns, from 6 components column by column, from a larger matrix by truncation, or with no arguments for the zero matrix (§40).

이름마다 붙은 시그니처와 설명은 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

declare function mat3x2f(): mat3x2
declare function mat3x2f(c0: vec2, c1: vec2, c2: vec2): mat3x2
declare function mat3x2f(e0: number, e1: number, e2: number, e3: number, e4: number, e5: number): mat3x2
declare function mat3x2f(m: mat3x2): mat3x2
declare function mat3x2f(m: mat3x3): mat3x2
declare function mat3x2f(m: mat3x4): mat3x2
declare function mat3x2f(m: mat4x2): mat3x2
declare function mat3x2f(m: mat4x3): mat3x2
declare function mat3x2f(m: mat4x4): mat3x2

매개변수나 반환 위치에 쓰인 number는 스칼라가 들어갈 자리입니다. 앰비언트 파일은 GPU 스칼라를 브랜드가 붙은 number로 선언하고 그 브랜드는 선택이라서, 리터럴도 브랜드가 붙은 스칼라도 이 자리에 들어갑니다.

type f32 = number & { readonly [f32Tag]?: true }

직접 쓰는 선언에는 여전히 너비가 필요합니다. 필드나 매개변수에 number만 적으면 거부되며, 그 행과 컴파일러가 낸 메시지는 TypeScript에서 페이지에 있습니다.

매개변수

  • c0 선택 사항 vec2
  • e0 선택 사항 number
  • m 선택 사항 mat3x2mat3x3mat3x4mat4x2mat4x3mat4x4
  • c1 선택 사항 vec2
  • e1 선택 사항 number
  • c2 선택 사항 vec2
  • e2 선택 사항 number
  • e3 선택 사항 number
  • e4 선택 사항 number
  • e5 선택 사항 number

반환값

mat3x2

함께 보기

이 페이지 편집 문제 보고