VertexBuffer

Up and coming: shot check knows this datatype and its members today, and programs run it once the native runtime lands.

comingDatatypes

Up and coming

Vertex data for a shader draw, uploaded once and used again on every draw.

VertexBuffer.new(values, perInstance) takes a list of Vector2, Vector3, Color3 or number lists. Hand buffers by attribute name to a ShaderProgram's DrawAsync, in its Vertices, to draw instanced geometry.

Constructors

NameArgumentsReturnsDescription
VertexBuffer.new(values: { { number } } | { Vector2 } | { Vector3 } | { Color3 }, perInstance: boolean)VertexBuffer