package brr
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=49e7bfbad2ea6a0139354e4a33c59c8a113c4c1e20a4f629bc5cad24aa801e474b4af10ce35adbda5d23dd294d1de5efa5b10bb3030d03f4758459977250a0f6
doc/brr/Brr_webgpu/Gpu/index.html
Module Brr_webgpu.Gpu
Source
WebGPU 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.
Pipelines
Shaders
Bind groups.
Pipeline layouts.
Shader modules.
Programmable stages.
Compute pipelines
Compute pipelines.
Render pipelines
Index buffer format.
Depth stencil state.
Multisample states.
Fragment states.
Render pipelines.
Issuing commands
Queries
Passes
Compute passes.
Render bundles.
Render passes.
Commands and queues
Adapters and devices
Supported limits.
Features names.
Pipeline errors.
GPU object
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
.
Adapter request
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
.
request_adapter gpu
requests an adapter from gpu
.
Canvas context
GPU canvas contexts.