This commit is contained in:
meehl committed 2026-09-02 16:37:59 +02:00
1 parent aa1bfb768e
commit 20a1db073d
20 files changed
+118 -126

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ impl BatchBuilder {
/// Tries to assign a texture to the batch.
///
/// Returns slot_index into textures array if texture can be assigned.
/// Returns `slot_index` into textures array if texture can be assigned.
/// Returns `None` if maximum amount of texture slots is reached.
fn try_assign(&mut self, id: TextureId, max_slots: NonZeroU32) -> Option<u32> {
if let Some(&slot) = self.texture_mapping.get(&id) {