IndirectBuffer constructor.
Renderer or GPUCurtains class object used to create this IndirectBuffer.
parameters use to create this IndirectBuffer.
The type of the IndirectBuffer.
The Renderer used to create this IndirectBuffer.
Readonly
uuidThe universal unique id of this IndirectBuffer.
Options used to create this IndirectBuffer.
Map of Geometry or IndexedGeometry that will use this IndirectBuffer.
The Buffer that will hold the geometries attributes.
Get the number of unique Geometry and IndexedGeometry added to this IndirectBuffer.
Add multiple Geometry or IndexedGeometry to this IndirectBuffer.
Array of Geometry or IndexedGeometry to add to this IndirectBuffer.
Add a Geometry or IndexedGeometry to this IndirectBuffer.
A Geometry or IndexedGeometry to add to this IndirectBuffer.
Create the buffer (or destroy it if it already exists) with the right size, create its GPUBuffer in a mapped state, add all geometries attributes to the mapped buffer and tell the geometries to use this IndirectBuffer.
Private
#addPrivate
Add a Geometry or IndexedGeometry attributes to the buffer mapped array buffer.
Geometry or IndexedGeometry to add the attributes from
The buffer mapped array buffer
Index in the buffer mapped array buffer at which to add the attributes.
Destroy this IndirectBuffer. Reset all geometries indirectDraw properties and destroy the Buffer.
Utility to handle indirect drawing.
Create a buffer, fill it with all the added geometries attributes and tell all the geometries to start using this buffer for indirect drawing.
Example