jon.recoil.org

Module Gpu.Buffer

GPU buffers.

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.

label b is the label of b.

val size : Brr_webgpu.Gpu.Buffer.t -> int

size b is the size of b.

val usage : Brr_webgpu.Gpu.Buffer.t -> int

usage b is the usage of b.

map_state b is the map state of b.

val map_async : ?size:int -> ?offset:int -> Brr_webgpu.Gpu.Buffer.t -> Brr_webgpu.Gpu.Buffer.Map_mode.t -> unit Fut.or_error

map_async b maps b.

val get_mapped_range : ?size:int -> ?offset:int -> Brr_webgpu.Gpu.Buffer.t -> Brr.Tarray.Buffer.t

get_mapped_range b is the mapped range of b.

val unmap : Brr_webgpu.Gpu.Buffer.t -> unit

unmap b unmaps b.

val destroy : Brr_webgpu.Gpu.Buffer.t -> unit

destroy b destroys b.

Binding

module Binding_type : sig ... end

Binding types.

module Binding_layout : sig ... end

Binding layouts

module Binding : sig ... end

Bindings.