Properties:
| Name | Type | Description |
|---|---|---|
data |
TypedArray | number[] |
the data to initialize the buffer with, this can be a typed array, or a regular number array. If it is a number array, it will be converted to a Float32Array |
label |
string |
a label for the buffer, this is useful for debugging |
size |
number |
the size of the buffer in bytes, if not supplied, it will be inferred from the data |
usage |
number |
the usage of the buffer, see rendering.BufferUsage |
Members
data TypedArray | number[]
the data to initialize the buffer with, this can be a typed array, or a regular number array. If it is a number array, it will be converted to a Float32Array
a label for the buffer, this is useful for debugging
the size of the buffer in bytes, if not supplied, it will be inferred from the data
the usage of the buffer, see rendering.BufferUsage