Brr_webgpu.Gpu
SourceWebGPU objects.
See the API documentation on MDN, on the W3C and WebGPU Samples.
Note. MDN's coverage of the API's objects is uneven, that's the reason why we link both on MDN and in the standard in the documentation strings.
Convention. Most (but not exactly all) API object names of the form GPUHeyHo
are mapped on modules named Gpu.Hey.Ho
or Gpu.Hey_ho
.
Compare functions.
Bind groups.
Pipeline layouts.
Shader modules.
Programmable stages.
Compute pipelines.
Index buffer format.
Depth stencil state.
Multisample states.
Fragment states.
Render pipelines.
Compute passes.
Render bundles.
Render passes.
Supported limits.
Features names.
Pipeline errors.
of_navigator n
is the gpu
object of n
(if any).
get_preferred_canvas_format g
is the 8-bit depth optimal texture format.
has_wgsl_language_features g n
is true
iff g
has WGSL feature n
.
Power preference.
The type for adapter request options.
val opts :
?power_preference:Power_preference.t ->
?force_fallback_adapater:bool ->
unit ->
opts
opts
are options for request_adapter
.
GPU canvas contexts.