mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 12:57:06 +01:00
702b552780
* fix(render): particle vertex attribute offsets from offsetof * fix(render): particle vertex attribute offsets from offsetof in the GL 4.6 and Vulkan renderers The GL 4.6 particles passed 0, 12 and 28 to setup_attrib, the Vulkan layout of vertex_kind::particle had the stride 36 and the same offsets as numbers. They now come from sizeof and offsetof of particle_vertex. The Vulkan particle_vertex moves from vulkan14frame.cpp to vulkan14context.h so the layout in vulkan14scene.cpp can use it. A build with static_asserts that each offsetof equals the old number (and the size 36) compiled; the asserts were taken out after.