Module Buffer-PIXI
class type _t = { ... }type t= Js.t(_t);A wrapper for data so that it can be used and uploaded by WebGL
let from: array(float) => t;Helper function that creates a buffer based on an array or TypedArray ArrayBufferView
module Impl: { ... };include Impl;
let create: data:Js.Typed_array.ArrayBuffer.t => ?_static:bool => ?index:bool => unit => t;Note that SharedArrayBuffer was disabled by default in all major browsers on 5 January, 2018 in response to Spectre. Chrome re-enabled it in v67 on platforms where its site-isolation feature is enabled to protect against Spectre-style vulnerabilities.
let getData: Js.t(_t) => Js.Typed_array.ArrayBuffer.t;The data in the buffer, as a typed array
let setData: Js.t(_t) => Js.Typed_array.ArrayBuffer.t => unit;The data in the buffer, as a typed array