From 9e41b050a71047aeef2df35135d9c09743821f01 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 6 Feb 2025 14:52:17 -0500 Subject: pke: glyph attribute offsets + cleanup --- src/window.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index ecaea14..5a3e2cb 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1806,14 +1806,13 @@ void CreateGraphicsPipelines() { // vertex - in_atlas_size vertAttrDesc_glyph[index].binding = 2; vertAttrDesc_glyph[index].format = VK_FORMAT_R32G32_SFLOAT; - vertAttrDesc_glyph[index].offset = offset; - offset += sizeof(glm::vec2); + vertAttrDesc_glyph[index].offset = 0; index += 1; // instance - in_fg_color vertAttrDesc_glyph[index].binding = 3; vertAttrDesc_glyph[index].format = VK_FORMAT_R32G32B32A32_SFLOAT; - vertAttrDesc_glyph[index].offset = 0; + vertAttrDesc_glyph[index].offset = offset; offset += sizeof(glm::vec4); index += 1; -- cgit v1.2.3