TypeArray
이 페이지에서

TypeArray

인터페이스, 레이아웃 분류

A fixed-size array uniform field with a plain element type: dash_array: arrayOf(vec4fT, 2).

import type { TypeArray } from 'typeshade'

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

구문

interface TypeArray<T extends ShaderType> {
readonly elemType: T;
readonly count: number;
}

설명

The field proxy exposes .at(i), which returns the typed element read.

인스턴스 속성

elemType읽기 전용 T

The element’s shader type.

count읽기 전용 number

The array length.

소스

src/core/sot.ts, 615행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고