UniformBufferOptions
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
NOTE It is recommended you use multiples of 4's to avoid hardware implemenetation bugs, vec4's the the most supported
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