package brr

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

Module Gpu.BufferSource

GPU buffers.

Sourcemodule Map_state : sig ... end

Map states.

Sourcemodule Map_mode : sig ... end

Map mode flags.

Sourcemodule Usage : sig ... end

Usage flags.

Sourcemodule Descriptor : sig ... end

Buffer descriptors.

Sourcetype t

The type for GPUBuffer objects.

Sourceval label : t -> Jstr.t

label b is the label of b.

Sourceval size : t -> int

size b is the size of b.

Sourceval usage : t -> int

usage b is the usage of b.

Sourceval map_state : t -> Map_state.t

map_state b is the map state of b.

Sourceval map_async : ?size:int -> ?offset:int -> t -> Map_mode.t -> unit Fut.or_error

map_async b maps b.

Sourceval get_mapped_range : ?size:int -> ?offset:int -> t -> Brr.Tarray.Buffer.t

get_mapped_range b is the mapped range of b.

Sourceval unmap : t -> unit

unmap b unmaps b.

Sourceval destroy : t -> unit

destroy b destroys b.

Binding

Sourcemodule Binding_type : sig ... end

Binding types.

Sourcemodule Binding_layout : sig ... end

Binding layouts

Sourcemodule Binding : sig ... end

Bindings.