package brr

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Devices.

Devices

module Lost_reason : sig ... end

Device lost reasons.

module Lost_info : sig ... end

Device lost information.

module Descriptor : sig ... end

Descriptors.

type t

The type for GPUDevice objects.

val as_target : t -> Brr.Ev.target

as_target d is d as an event target.

val label : t -> Jstr.t

label d is the label of d.

val has_feature : t -> Feature_name.t -> bool

has_feature d n is true iff n is a features of d.

val limits : t -> Supported_limits.t

limits d are the limits of d.

val lost : t -> Lost_info.t Fut.or_error

lost d is the lost property of d.

val queue : t -> Queue.t

queue d is the queue of d.

val destroy : t -> unit

destroy d destroys d.

Error scopes

val push_error_scope : t -> Error.Filter.t -> unit

push_error_scope pushes an error scope.

val pop_error_scope : t -> Error.t option Fut.or_error

pop_error_scope pops the last error scope.

Creating ressources

val create_buffer : t -> Buffer.Descriptor.t -> Buffer.t

create_buffer d descr creates a buffer on d according to descr. See the validation rules on descr.

val create_texture : t -> Texture.Descriptor.t -> Texture.t

create_texture d descr creates a texture on d according to descr.

val import_external_texture : t -> Texture.External.Descriptor.t -> Texture.External.t

import_external_texture d descr imports an external texture on d according to descr.

val create_sampler : t -> Sampler.Descriptor.t -> Sampler.t

create_sampler d descr creates a sampler on d according to descr.

val create_bind_group_layout : t -> Bind_group.Layout.Descriptor.t -> Bind_group.Layout.t

create_bind_group_layout d descr creates a bind group layout on d according to descr.

val create_bind_group : t -> Bind_group.Descriptor.t -> Bind_group.t

create_bind_group d descr creates a bind group on d according to descr.

val create_pipeline_layout : t -> Pipeline_layout.Descriptor.t -> Pipeline_layout.t

create_pipeline_layout d descr creates a pipeline layout on d according to descr.

val create_shader_module : t -> Shader_module.Descriptor.t -> Shader_module.t

create_shader_module d descr creates a shader module on d according to descr.

val create_compute_pipeline : t -> Compute_pipeline.Descriptor.t -> Compute_pipeline.t

create_compute_pipeline d descr creates a compute pipeline on d according to descr.

val create_compute_pipeline_async : t -> Compute_pipeline.Descriptor.t -> (Compute_pipeline.t, Pipeline_error.t) Stdlib.result Fut.t

create_compute_pipeline_async d descr creates a compute pipeline on d according to descr.

val create_render_pipeline : t -> Render_pipeline.Descriptor.t -> Render_pipeline.t

create_render_pipeline d descr creates a render pipeline on d according to descr.

val create_render_pipeline_async : t -> Render_pipeline.Descriptor.t -> (Compute_pipeline.t, Pipeline_error.t) Stdlib.result Fut.t

create_render_pipeline_async d descr creates a render pipeline on d according to descr.

val create_query_set : t -> Query.Set.Descriptor.t -> Query.Set.t

create_query_set d descr creates a query set on d according to descr.

val create_render_bundle_encoder : t -> Render_bundle.Encoder.Descriptor.t -> Render_bundle.Encoder.t

create_render_bundle_encoder d descr creates a render bundle encoder on d according to descr.

val create_command_encoder : ?descr:Command.Encoder.Descriptor.t -> t -> Command.Encoder.t

create_command_encoder d descr creates a command encoder on d according to descr.

Events

module Ev : sig ... end

Events.

OCaml

Innovation. Community. Security.