GPU device
Input data that should be one of four data types: Float32Array
, Float64Array
, Uint16Array
, and
Uint32Array
Type of enum BufferType
. It is used to specify the type of the returned buffer. The default is
vertex buffer
Generated using TypeDoc
This function creats a GPU buffer with data to initialize it. If the input data is a type of
Float32Array
orFloat64Array
, it returns a vertex, uniform, or storage buffer specified by the enumbufferType
. Otherwise, if the input data has aUint16Array
orUint32Array
, this function will return an index buffer.