brr
Gpu.Buffer
GPU buffers.
brr.ocaml_poke
brr.ocaml_poke_ui
brr.poke
brr.poked
module Map_state : sig ... end
Map states.
module Map_mode : sig ... end
Map mode flags.
module Usage : sig ... end
Usage flags.
module Descriptor : sig ... end
Buffer descriptors.
type t
The type for GPUBuffer objects.
GPUBuffer
val label : t -> Jstr.t
label b is the label of b.
label b
b
val size : t -> int
size b is the size of b.
size b
val usage : t -> int
usage b is the usage of b.
usage b
val map_state : t -> Map_state.t
map_state b is the map state of b.
map_state b
val map_async : ?size:int -> ?offset:int -> t -> Map_mode.t -> unit Fut.or_error
map_async b maps b.
map_async b
val get_mapped_range : ?size:int -> ?offset:int -> t -> Brr.Tarray.Buffer.t
get_mapped_range b is the mapped range of b.
get_mapped_range b
val unmap : t -> unit
unmap b unmaps b.
unmap b
val destroy : t -> unit
destroy b destroys b.
destroy b
module Binding_type : sig ... end
Binding types.
module Binding_layout : sig ... end
Binding layouts
module Binding : sig ... end
Bindings.