WebGPU¶
WebGPU provides Kotlin Multiplatform types and interfaces for the WebGPU API. The published
modules are webgpu-api, webgpu-descriptors, webgpu-web-bindings, and webgpu-browser under
the org.graphiks.webgpu group. The webgpu-specifications module holds the versioned source material
used to generate bindings.
Browser applications start from webgpu-browser, which provides requestAdapter, the resource
wrappers, descriptor converters, and canvas surfaces. webgpu-web-bindings exposes the generated
JavaScript bindings for direct interop.
- Get started with a dependency and a small API example.
- Adopt the toolkit for sessions, presentation, and binding extensions.
- Read the public API contract for the current signatures and backend obligations.
- Understand the modules and their platform boundaries.
- Run the business tests before submitting a change.
- Maintain the specification when upstream WebGPU changes.
- Consult the type mapping for WebGPU-to-Kotlin contracts.