Gpu.DeviceDevices.
module Lost_reason : sig ... endDevice lost reasons.
module Lost_info : sig ... endDevice lost information.
module Descriptor : sig ... endDescriptors.
The type for GPUDevice objects.
val as_target : t -> Brr.Ev.targetas_target d is d as an event target.
val has_feature : t -> Feature_name.t -> boolhas_feature d n is true iff n is a features of d.
val limits : t -> Supported_limits.tlimits d are the limits of d.
val lost : t -> Lost_info.t Fut.or_errorlost d is the lost property of d.
val push_error_scope : t -> Error.Filter.t -> unitpush_error_scope pushes an error scope.
val pop_error_scope : t -> Error.t option Fut.or_errorpop_error_scope pops the last error scope.
val create_buffer : t -> Buffer.Descriptor.t -> Buffer.tcreate_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.tcreate_texture d descr creates a texture on d according to descr.
val import_external_texture :
t ->
Texture.External.Descriptor.t ->
Texture.External.timport_external_texture d descr imports an external texture on d according to descr.
val create_sampler : t -> Sampler.Descriptor.t -> Sampler.tcreate_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.tcreate_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.tcreate_bind_group d descr creates a bind group on d according to descr.
val create_pipeline_layout :
t ->
Pipeline_layout.Descriptor.t ->
Pipeline_layout.tcreate_pipeline_layout d descr creates a pipeline layout on d according to descr.
val create_shader_module : t -> Shader_module.Descriptor.t -> Shader_module.tcreate_shader_module d descr creates a shader module on d according to descr.
val create_compute_pipeline :
t ->
Compute_pipeline.Descriptor.t ->
Compute_pipeline.tcreate_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.tcreate_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.tcreate_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.tcreate_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.tcreate_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.tcreate_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.tcreate_command_encoder d descr creates a command encoder on d according to descr.
module Ev : sig ... endEvents.