Skip to main content

Interface: InstanceDataLayout

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

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:65

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:60

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


setupInstanceAttributes

readonly setupInstanceAttributes: SetupInstanceAttributesCallback

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

Sets up the vertex attributes for every segment.