Bindings
이 페이지에서

Bindings

타입, 런타임 분류

The values a draw or a dispatch binds, by the names the source declares: a Texture, a Sampler, a plain host value (Rule 8.21) the runtime packs by the binding's layout, a Resident, or the host's own GPUBuffer, GPUTexture, GPUTextureView or GPUSampler.

import type { Bindings } from 'typeshade/runtime'

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

구문

type Bindings = Readonly<Record<string, unknown>>;

설명

A plain value is packed into a buffer of its own at each draw and each dispatch, so the draws of one pass that bind different values of one binding each read their own. The buffers come back to the runtime once the frame has run. A Resident is one buffer every draw shares. The bindings a draw names are the ones its entries reach: a name they do not reach is refused.

소스

src/runtime/program.ts, 44행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고