Skip to main content

Interface: InstanceDataLayout

Defined in: rendering/utilities/instance-data-segment.ts:58

The combined instance data layout produced by combineInstanceDataSegments, ready to be passed to a Renderable.

Properties

bindInstanceData

readonly bindInstanceData: BindInstanceDataCallback

Defined in: rendering/utilities/instance-data-segment.ts:67

Binds every segment's data for an entity into the instance data buffer.


floatsPerInstance

readonly floatsPerInstance: number

Defined in: rendering/utilities/instance-data-segment.ts:62

The total number of floats per instance across all combined segments.


setupInstanceAttributes

readonly setupInstanceAttributes: SetupInstanceAttributesCallback

Defined in: rendering/utilities/instance-data-segment.ts:72

Sets up the vertex attributes for every segment.