Up – Index » sarek » Spoc_webgpu_runtime » Webgpu_jsModule Spoc_webgpu_runtime.Webgpu_js Low-level js_of_ocaml glue for the WebGPU runtime: promise helpers, JS object/array accessors, typed-array construction, and the WebGPU global enum readers. Kept separate from Webgpu_runtime so each file stays within the project size limits.
val js_to_int : Js_of_ocaml .Js.number_t -> intval js_of_int : int -> Js_of_ocaml .Js.number_tval js_of_float : float -> Js_of_ocaml .Js.number_tval then_ : 'a -> ('b -> 'c ) -> unitval catch_ : 'a -> ('b -> 'c ) -> unitval js_global : string -> 'a val json_parse : string -> 'a val js_get : 'a -> string -> 'b val js_int : 'a -> string -> intval js_str : 'a -> string -> stringval js_arr_len : 'a -> intval js_arr_get : 'a -> int -> 'b val js_is_null_or_undef : 'a -> boolval make_ta : 'a -> float array -> 'b val typed_array : string -> float array -> 'a val usage : string -> intval map_read : unit -> intval shader_compute : unit -> intval js_err : 'a -> string