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, }