18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 07:07:05 +01:00
Files
maszyna/rendering
jerrrrycho 702b552780 fix(render): particle vertex attribute offsets from offsetof in the GL 4.6 and Vulkan renderers (#511)
* 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.
2026-11-27 23:51:25 +01:00
..