Function Kataglyphis::assignTextureOffsets#
Defined in File ObjectDescription.ixx
Function Documentation#
-
inline void Kataglyphis::assignTextureOffsets(std::span<ObjectDescription> descriptions, std::span<const uint32_t> meshCountPerModel, std::span<const uint32_t> textureCountPerModel)#
Stamps texture_offset onto
descriptions, which holds one entry per MESH flattened across models (see Scene::add_model). Every mesh of a model shares that model’s offset into the flattened global texture array; the offset advances by that model’s texture count once its meshes are done. Stops cleanly (leaving any trailing descriptions untouched) if the per-model mesh counts would run past the end ofdescriptions- a mesh-count/description-count mismatch must not read out of range.