PackBinding
이 페이지에서

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읽기 전용 string
space읽기 전용 string
group읽기 전용 number
binding읽기 전용 number
access선택 사항읽기 전용 'read' | 'read_write'
type읽기 전용 string

The typeKey spelling: vec4<f32>, array<f32>, texture_2d<f32>.

resource읽기 전용 PackResource
stages읽기 전용 readonly ('vertex' | 'fragment' | 'compute')[]

The stages whose entries reach it, which its bind group layout’s visibility names.

layout선택 사항읽기 전용 PackLayout

A buffer’s byte layout, under rule; absent on a handle.

rule선택 사항읽기 전용 'std140' | 'std430'
noLayout선택 사항읽기 전용 string

Why a buffer has no host layout: a bool, a two-row matrix in a uniform.

injected선택 사항읽기 전용 true

A binding the emit adds, which the host binds as it binds any other: the _fp64 guard, a 1 × 1 texture that holds 1.0, and the recorded variant’s _console buffer.

dataTexture선택 사항읽기 전용 PackDataTexture

A 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 기준

이 페이지 편집 문제 보고