VertexBufferOptions
Index
Properties
optionaldata
gl
WebGL2RenderingContext this layout will be attached to, these cannot be reused across contexts.
optionalsize
Size in number of floats, so [4.2, 4.0, 2.1] is size = 3
Ignored if data is passed directly
optionaltype
If the vertices never change switching 'static' can be more efficient on the gpu
Default is 'dynamic'
Optionally pass pre-seeded data, size parameter is ignored