package brr

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

Module Compute_pass.EncoderSource

Pass encoders.

Encoders

Sourcetype t

The type for GPUComputePassEncoder objects.

Sourceval label : t -> Jstr.t

label e is the label of e.

Sourceval end' : t -> unit

end' e ends the pass on e.

Setup commands

Sourceval set_pipeline : t -> Compute_pipeline.t -> unit

set_pipeline e p sets the pipeline of e to p.

Sourceval set_bind_group : ?dynamic_offsets:int list -> ?group:Bind_group.t -> t -> index:int -> unit

set_bind_group sets a bind group for subsequent commands.

Sourceval set_bind_group' : ?group:Bind_group.t -> t -> index:int -> dynamic_offsets:int array -> offsets_start:int -> offsets_length:int -> unit

set_bind_group' sets a bind group for subsequent commands.

Dispatch commands

Sourceval dispatch_workgroups : ?count_z:int -> ?count_y:int -> t -> count_x:int -> unit

dispatch_workgroups dispaches a grid of workgroups.

Sourceval dispatch_workgroups_indirect : t -> Buffer.t -> offset:int -> unit

dispatch_workgroups_indirect dispatches a grid of workgroups.

Debug commands

Sourceval push_debug_group : t -> Jstr.t -> unit

push_debug_group e l starts a debug group pass l on e.

Sourceval pop_debug_group : t -> unit

pop_debug_group ends the debug group pass on e.

Sourceval insert_debug_marker : t -> Jstr.t -> unit

insert_debug_marker e l marks a point l in e.