Function Kataglyphis::planFlattenedTextureSlots

Function Kataglyphis::planFlattenedTextureSlots#

Function Documentation#

inline FlattenedTexturePlan Kataglyphis::planFlattenedTextureSlots(std::span<const uint32_t> textureCountPerModel, uint32_t maxSlots)#

Mirror image of assignTextureOffsets: that function stamps each mesh’s offset into the flattened array, this one builds the array itself, model by model, capping at maxSlots and padding the tail with slot 0.