PackEntry
이 페이지에서

PackEntry

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

A shader entry point. name and stage are the fields packModule() has always given.

import type { PackEntry } from 'typeshade'

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

구문

interface PackEntry {
readonly name: string;
readonly stage: string;
readonly workgroupSize?: readonly [number, number, number];
readonly inputs?: readonly PackIo[];
readonly outputs?: readonly PackIo[];
readonly bindings?: readonly { readonly name: string; readonly writes: boolean }[];
readonly vertex?: GpuVertexLayout;
readonly line?: PackLine;
}

인스턴스 속성

name읽기 전용 string
stage읽기 전용 string
workgroupSize선택 사항읽기 전용 readonly [number, number, number]

@workgroup_size(x, y, z), for a compute entry.

inputs선택 사항읽기 전용 readonly PackIo[]
outputs선택 사항읽기 전용 readonly PackIo[]
bindings선택 사항읽기 전용 readonly { readonly name: string; readonly writes: boolean }[]

The bindings the entry reaches through its calls, and whether it writes each.

vertex선택 사항읽기 전용 GpuVertexLayout

A vertex entry’s vertex buffer, tightly packed, with formats.

line선택 사항읽기 전용 PackLine

소스

src/core/manifest-types.ts, 123행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고