VertexLayout
이 페이지에서

VertexLayout

인터페이스, 리플렉션 분류

The vertex-buffer layout for a module's @vertex entry: every @location input and the interleaved, tightly packed arrayStride they fill.

import type { VertexLayout } from 'typeshade'

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

구문

interface VertexLayout {
readonly attributes: readonly VertexAttr[];
readonly arrayStride: number;
}

설명

reflect describes the first @vertex entry it finds in module.funcs; a module with more than one vertex entry point gets a VertexLayout for the one declared first. Reflection.vertex is undefined when the module has no @location vertex parameters.

인스턴스 속성

attributes읽기 전용 readonly VertexAttr[]
arrayStride읽기 전용 number

함께 보기

소스

src/core/reflect.ts, 491행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고