public interface ITransformRecordSourceWhich record of a shared transform buffer an object's world matrix is.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A separate interface from IInstanceSource because the two answer different questions about the same field. Instancing says how many copies a draw has and where their run starts; this says which one matrix a single draw reads. Both land in firstInstance, and instancing wins where it applies — its transforms are the ones the instanced variant of a shader reads.
An interface rather than a reference to TransformRenderFeature, because MeshRenderFeature naming a transform feature is exactly the coupling the sub-feature arrangement exists to avoid — see that class's remarks.
Methods (1)
int RecordIndexOf(RenderSystem system, RenderObjectId id)The object's record index, or -1 when its matrix is not in a buffer at all.
Used by (2)
- MeshRenderFeatureVixen.Rendering
- TransformRenderFeatureVixen.Rendering