PackBinding
Interface in Reflection
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'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
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;}Instance properties
nameread onlystringspaceread onlystringgroupread onlynumberbindingread onlynumberaccessoptionalread only'read' | 'read_write'typeread onlystringThe
typeKeyspelling:vec4<f32>,array<f32>,texture_2d<f32>.resourceread onlyPackResourcestagesread onlyreadonly ('vertex' | 'fragment' | 'compute')[]The stages whose entries reach it, which its bind group layout’s visibility names.
layoutoptionalread onlyPackLayoutA buffer’s byte layout, under
rule; absent on a handle.ruleoptionalread only'std140' | 'std430'noLayoutoptionalread onlystringWhy a buffer has no host layout: a
bool, a two-row matrix in a uniform.injectedoptionalread onlytrueA 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.dataTextureoptionalread onlyPackDataTextureA storage array’s data texture on WebGL2, when the GLSL ES 3.00 program reads it as one.
Source
src/core/manifest-types.ts, line 83, at commit 26de7be8