PackBinding
인터페이스, 리플렉션 분류
One resource slot. name, space, group, binding, access and type are the fields packModule() has always given; the rest came with schema 1.
import type { PackBinding } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface PackBinding { readonly name: string; readonly space: string; readonly group: number; readonly binding: number; readonly access?: 'read' | 'read_write'; readonly type: string; readonly resource: PackResource; readonly stages: readonly ('vertex' | 'fragment' | 'compute')[]; readonly layout?: PackLayout; readonly rule?: 'std140' | 'std430'; readonly noLayout?: string; readonly injected?: true; readonly dataTexture?: PackDataTexture;}인스턴스 속성
name읽기 전용stringspace읽기 전용stringgroup읽기 전용numberbinding읽기 전용numberaccess선택 사항읽기 전용'read' | 'read_write'type읽기 전용stringThe
typeKeyspelling:vec4<f32>,array<f32>,texture_2d<f32>.resource읽기 전용PackResourcestages읽기 전용readonly ('vertex' | 'fragment' | 'compute')[]The stages whose entries reach it, which its bind group layout’s visibility names.
layout선택 사항읽기 전용PackLayoutA buffer’s byte layout, under
rule; absent on a handle.rule선택 사항읽기 전용'std140' | 'std430'noLayout선택 사항읽기 전용stringWhy a buffer has no host layout: a
bool, a two-row matrix in a uniform.injected선택 사항읽기 전용trueA binding the emit adds, which the host binds as it binds any other: the
_fp64guard, a 1 × 1 texture that holds 1.0, and the recorded variant’s_consolebuffer.dataTexture선택 사항읽기 전용PackDataTextureA storage array’s data texture on WebGL2, when the GLSL ES 3.00 program reads it as one.
소스
src/core/manifest-types.ts, 83행, 커밋 c66579bf 기준