런타임

런타임

export 21개

프로그램 런타임은 컴파일된 프로그램을 WebGPU에서 실행합니다. 커널 호출이 디바이스에 남겨 두는 배열도 여기 있습니다.

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

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.
ComputePipeline 인터페이스
A compute pipeline: one entry, dispatched with bindings by name.
configure 함수
Set how a kernel call or a @compute entry's call runs (Rule 11.8).
createRuntime 함수
Make a runtime: on the host's device, or on one it requests with the features the programs need.
Frame 인터페이스
One command encoder's work: dispatches and render passes, submitted together.
Geometry 인터페이스
What a draw draws: count vertices, instances times, from the vertex buffer the manifest lays out.
LoadOptions 인터페이스
How rt.load() loads a program.
PassTargets 인터페이스
A render pass's attachments: textures, or a canvas context the host configured, each with what it is cleared to.
Program 인터페이스
A program loaded on a runtime: its manifest and its pipelines.
RenderPass 인터페이스
A render pass of a frame: draws recorded into it.
RenderPipeline 인터페이스
A render pipeline: a vertex entry, a fragment entry and the state, drawn with bindings by name.
RenderState 인터페이스
The fixed-function state of a render pipeline, which the host writes: the compiler knows its entries' inputs and outputs, and the runtime fills and checks those.
resident 함수
Wrap a host value once so that it stays on the device across calls: const dev = resident(new Float32Array(512 * 512)); render; const img = await dev.read().
Resident 인터페이스
A value that stays on the device across calls, made by resident: one buffer of both layers.
runtime 함수
The default runtime: the one configure named, or one on the device the call layer uses, so a resource made on either layer is used on the other.
Runtime 인터페이스
The program runtime: a device, and everything a program needs on it.
RuntimeOptions 인터페이스
How createRuntime() makes a runtime.
Sampler 인터페이스
A sampler the runtime binds by name.
SamplerOptions 인터페이스
What rt.sampler() makes.
Texture 인터페이스
A texture the runtime binds by name and renders into: a sampled texture, a render target, a depth or shadow map.
TextureOptions 인터페이스
What rt.texture() makes. format is any GPUTextureFormat the device can render to or sample: rgba8unorm, rgba16float, depth24plus, r32float.

이 페이지 편집 문제 보고