From 6c4c61b8cbccd4fb4c3a308a1143c01f3b986573 Mon Sep 17 00:00:00 2001 From: meehl <12648828+meehl@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:09:00 +0200 Subject: [PATCH] Rewrite comment about possible layer index optimization --- src/renderer/mesh.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/mesh.rs b/src/renderer/mesh.rs index bf3ee98..a6ae526 100644 --- a/src/renderer/mesh.rs +++ b/src/renderer/mesh.rs @@ -13,9 +13,9 @@ pub struct Vertex { pub pos: LogicalPoint, pub uv: NormalizedPoint, pub color: Srgba, - // TODO: layer_idx is the same for all vertices. use a uniform buffer - // and bind it along with the texture. move into Mesh or make part of - // TextureId (change into tuple) + /// Index into texture array + /// TODO: Remove from Vertex and put into Mesh. Use push constant to set index + /// before each draw call. Not sure if actually faster, profiling needed. pub layer_idx: u32, }