Runtime
92 members
The program runtime that runs compiled programs on WebGPU, the array a kernel call keeps on the device, and the host types a host view spells values with.
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
-
arrayFunction - A storage array of the structs of cls that data holds, a Buffer; or, with a typed array, a Buffer of its scalars that keeps it on the device across calls (Amendment A1:
array(xs)replaces resident(xs); Amendment A10, Q-I): a Buffer<f32> for a Float32Array or a number[], and so on; or, with a length and an element, a zeroed Buffer of scalars. -
BindingsType - A draw or dispatch binds values by the names the source declares.
-
BindingsOfType - The bindings entry K of the manifest P reaches, as a draw or a dispatch passes them: BindingsOf<typeof mesh, 'vs'>.
-
boolType - A bool as a host value: a boolean, with its name as a number has its name.
-
BufferInterface - An array on the device of length elements T: a Buffer of structs, one range of the region laid out as a storage array with no size (Rule 6.8), made by zeros or array with a class; or a Buffer of scalars or vectors, made by
array(xs)of a typed array, array or a kernel called on a resource. -
buildInfoConstant - Frozen package information. Source checkouts are unstamped.
-
callDeviceFunction - The report of the device the calls run on, as gpuDevice() gives it: the device is requested as a call requests it.
-
ChunkRateInterface - What a device measured of one chunk key: the time one unit takes, as the device learned it from the chunks so far, how many chunks it ran, the longest of them and the units of the last one.
-
CompareFunctionType - WebGPU GPUCompareFunction: how a depth test compares a fragment with the stored value.
-
ComputePipelineInterface - A compute pipeline: one entry, dispatched with bindings by name.
-
configureFunction - Set how a default-owner kernel call or
@computeentry's call runs (Rule 11.8). -
createDeviceFunction - Open the owner of a host's kernel calls: on the first tier of prefer that opens, on a GPUDevice the host already has, or on the device of a program runtime.
-
createRuntimeFunction - Creates a runtime on the host's device or WebGL2 context, or on the first available tier in `prefer`: a WebGPU device meeting the programs' feature requirements and the limits requested by the programs and `limits` option, or a new WebGL2 context.
-
DepthAttachmentType - A depth attachment: the depth aspect of one texture, and its stencil object when the format has a stencil aspect.
-
DeviceInterface - The owner of a host's kernel calls: the tier they run on, the Buffers they take and the pool those arrays return to, the device's limits and lost signal, the plans of fuse(), and dispose().
-
DeviceInfoInterface - Frozen, JSON-serializable historical metadata of an opened device.
-
DeviceOptionsType - How createDevice() opens a device.
-
DeviceReportInterface - What callDevice() reports of the device the calls run on: its numeric limits, keyed by WebGPU's names, and its enabled features in sorted order.
-
DeviceStatisticsInterface - What a device counts of the arrays it made.
-
f32Type - An
f32as a host value (Rule 8.21): a number, which a call rounds as a buffer write rounds it. -
f64Type - An
f64(Rule 4.4) as a host value: a number, kept as a double. -
FrameInterface - One command encoder's work: dispatches and render passes, submitted together.
-
fuseFunction - Run a chain of kernel-function calls as one plan, and resolve to a report of what the plan did.
-
FuseReportInterface - What a fuse scope did once its plan had run.
-
FuseScopeInterface - What the body of a fuse call receives: the scope that records the kernel calls the body makes, and makes the scratch arrays they share.
-
GeometryInterface - What a draw draws: count vertices, instances times, from the vertex buffer the manifest lays out.
-
i32Type - An
i32as a host value: a number, a whole number in thei32range, which a call checks. -
LoadOptionsInterface - How rt.load() loads a program.
-
mat2Type mat2, the short spelling ofmat2x2, the same type.-
mat2x2Type - A
mat2x2as a host value: a readonly tuple of its 4 components, column-major. -
mat2x2fType - WGSL's
mat2x2f, the same type asmat2x2. -
mat2x3Type - A
mat2x3, 2 columns of 3 rows, as a host value: a readonly tuple of its 6 components, column-major. -
mat2x3fType - WGSL's
mat2x3f, the same type asmat2x3. -
mat2x4Type - A
mat2x4, 2 columns of 4 rows, as a host value: a readonly tuple of its 8 components, column-major. -
mat2x4fType - WGSL's
mat2x4f, the same type asmat2x4. -
mat3Type mat3, the short spelling ofmat3x3, the same type.-
mat3x2Type - A
mat3x2, 3 columns of 2 rows, as a host value: a readonly tuple of its 6 components, column-major. -
mat3x2fType - WGSL's
mat3x2f, the same type asmat3x2. -
mat3x3Type - A
mat3x3as a host value: a readonly tuple of its 9 components, column-major. -
mat3x3fType - WGSL's
mat3x3f, the same type asmat3x3. -
mat3x4Type - A
mat3x4, 3 columns of 4 rows, as a host value: a readonly tuple of its 12 components, column-major. -
mat3x4fType - WGSL's
mat3x4f, the same type asmat3x4. -
mat4Type mat4, the short spelling ofmat4x4, the same type.-
mat4x2Type - A
mat4x2, 4 columns of 2 rows, as a host value: a readonly tuple of its 8 components, column-major. -
mat4x2fType - WGSL's
mat4x2f, the same type asmat4x2. -
mat4x3Type - A
mat4x3, 4 columns of 3 rows, as a host value: a readonly tuple of its 12 components, column-major. -
mat4x3fType - WGSL's
mat4x3f, the same type asmat4x3. -
mat4x4Type - A
mat4x4as a host value: a readonly tuple of its 16 components, column-major. -
mat4x4fType - WGSL's
mat4x4f, the same type asmat4x4. -
mergeReportsFunction - The report of several plans as one, as a plan of several groups reports its own: the dispatches and the submissions summed, the groups in the order given, and the tier the most capable report ran on.
-
PassTargetsInterface - A render pass's attachments: textures, or a canvas context the host configured.
-
ProgramInterface - A program loaded on a runtime: its manifest and its pipelines.
-
RenderPassInterface - A render pass of a frame: draws recorded into it.
-
RenderPipelineInterface - A render pipeline: a vertex entry, a fragment entry and the state, drawn with bindings by name.
-
RenderStateInterface - 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.
-
runtimeFunction - 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.
-
RuntimeInterface - The program runtime: a device, and everything a program needs on it.
-
RuntimeOptionsInterface - How createRuntime() makes a runtime.
-
SamplerInterface - A sampler the runtime binds by name.
-
SamplerOptionsInterface - What rt.sampler() makes.
-
StencilFaceStateInterface - WebGPU GPUStencilFaceState: the stencil test and its three operations for one face.
-
StencilOperationType - WebGPU GPUStencilOperation: what a stencil test does to the value a pixel stores.
-
StencilStateInterface - The stencil test of a pipeline.
-
textureFunction - A texture of the block's default device: using _ = device.use() names the device, and the texture is the one device.texture(options) makes.
-
TextureInterface - A texture the runtime binds by name and renders into: a sampled texture, a render target, a depth or shadow map.
-
TextureOptionsInterface - What rt.texture() makes. format is any GPUTextureFormat the device can render to or sample: rgba8unorm, rgba16float, depth24plus, r32float.
-
TypeShadeBuildInfoInterface - The package build, separate from a program's compiler or a benchmark's revision.
-
u32Type - A
u32as a host value: a number, a whole number from 0 to 4294967295, which a call checks. -
uniformFunction - A uniform of the struct of cls, a class a shader module exports: one range of the region, zeroed, then given the fields init names.
-
UniformType - A uniform of the struct T: one range of the region laid out by the uniform rules of Rule 6.8, with an accessor for each field.
-
vec2Type - A
vec2, the vector of twof32, as a host value: a readonly tuple of twof32. -
vec2bType - A
vec2bas a host value: a readonly tuple of two bool. -
vec2dType vec2d, the short spelling ofvec2f64, the same type.-
vec2fType - WGSL's
vec2f, the same type asvec2. -
vec2f64Type - A
vec2f64(Rule 4.4) as a host value: a readonly tuple of twof64. -
vec2iType - A
vec2ias a host value: a readonly tuple of twoi32. -
vec2uType - A
vec2uas a host value: a readonly tuple of twou32. -
vec3Type - A
vec3, the vector of threef32, as a host value: a readonly tuple of threef32. -
vec3bType - A
vec3bas a host value: a readonly tuple of three bool. -
vec3dType vec3d, the short spelling ofvec3f64, the same type.-
vec3fType - WGSL's
vec3f, the same type asvec3. -
vec3f64Type - A
vec3f64(Rule 4.4) as a host value: a readonly tuple of threef64. -
vec3iType - A
vec3ias a host value: a readonly tuple of threei32. -
vec3uType - A
vec3uas a host value: a readonly tuple of threeu32. -
vec4Type - A
vec4, the vector of fourf32, as a host value: a readonly tuple of fourf32. -
vec4bType - A
vec4bas a host value: a readonly tuple of four bool. -
vec4dType vec4d, the short spelling ofvec4f64, the same type.-
vec4fType - WGSL's
vec4f, the same type asvec4. -
vec4f64Type - A
vec4f64(Rule 4.4) as a host value: a readonly tuple of fourf64. -
vec4iType - A
vec4ias a host value: a readonly tuple of fouri32. -
vec4uType - A
vec4uas a host value: a readonly tuple of fouru32. -
zerosFunction - A storage array of length zeroed structs of cls, a class a shader module exports: one range of the region.