Brr_webgpu.GpuWebGPU 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.
module Origin_2d : sig ... end2D origins.
module Origin_3d : sig ... end3D origins.
module Extent_3d : sig ... end3D extents.
module Compare_function : sig ... endCompare functions.
module Buffer : sig ... endGPU buffers.
module Texture : sig ... endTextures.
module Image : sig ... endImages.
module Sampler : sig ... endSamplers.
module Bind_group : sig ... endBind groups.
module Pipeline_layout : sig ... endPipeline layouts.
module Shader_module : sig ... endShader modules.
module Programmable_stage : sig ... endProgrammable stages.
module Compute_pipeline : sig ... endCompute pipelines.
module Index_format : sig ... endIndex buffer format.
module Primitive : sig ... endPrimitives.
module Vertex : sig ... endVertex states.
module Blend : sig ... endBlend state.
module Color : sig ... endColors and color state.
module Stencil : sig ... endStencil state and operations.
module Depth_stencil_state : sig ... endDepth stencil state.
module Multisample_state : sig ... endMultisample states.
module Fragment_state : sig ... endFragment states.
module Render_pipeline : sig ... endRender pipelines.
module Query : sig ... endQueries.
module Compute_pass : sig ... endCompute passes.
module Render_bundle : sig ... endRender bundles.
module Render_pass : sig ... endRender passes.
module Command : sig ... endCommand buffers and encoders.
module Queue : sig ... endQueues.
module Supported_limits : sig ... endSupported limits.
module Feature_name : sig ... endFeatures names.
module Error : sig ... endErrors.
module Pipeline_error : sig ... endPipeline errors.
module Device : sig ... endDevices.
module Adapter : sig ... endAdapters.
The type for GPU objects.
of_navigator n is the gpu object of n (if any).
val get_preferred_canvas_format : t -> Texture.Format.tget_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.
module Power_preference : sig ... endPower preference.
The type for adapter request options.
val opts :
?power_preference:Power_preference.t ->
?force_fallback_adapater:bool ->
unit ->
optsopts are options for request_adapter.
val request_adapter : ?opts:opts -> t -> Adapter.t option Fut.or_errorrequest_adapter gpu requests an adapter from gpu.
module Canvas_context : sig ... endGPU canvas contexts.