Module Gpu.Buffer
GPU buffers.
module Map_state : sig ... endMap states.
module Map_mode : sig ... endMap mode flags.
module Usage : sig ... endUsage flags.
module Descriptor : sig ... endBuffer descriptors.
The type for GPUBuffer objects.
val label : Brr_webgpu.Gpu.Buffer.t -> Jstr.tlabel b is the label of b.
val size : Brr_webgpu.Gpu.Buffer.t -> intsize b is the size of b.
val usage : Brr_webgpu.Gpu.Buffer.t -> intusage b is the usage of b.
val map_state : Brr_webgpu.Gpu.Buffer.t -> Brr_webgpu.Gpu.Buffer.Map_state.tmap_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_errormap_async b maps b.
val get_mapped_range :
?size:int ->
?offset:int ->
Brr_webgpu.Gpu.Buffer.t ->
Brr.Tarray.Buffer.tget_mapped_range b is the mapped range of b.
val unmap : Brr_webgpu.Gpu.Buffer.t -> unitunmap b unmaps b.
val destroy : Brr_webgpu.Gpu.Buffer.t -> unitdestroy b destroys b.
Binding
module Binding_type : sig ... endBinding types.
module Binding_layout : sig ... endBinding layouts
module Binding : sig ... endBindings.
val to_jv : Brr_webgpu.Gpu.Buffer.t -> Jv.jvval of_jv : Jv.jv -> Brr_webgpu.Gpu.Buffer.t