17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-11 22:29:03 +01:00

Vulkan ray tracing: include tracks and roads, build triangle strips and fans

This commit is contained in:
2026-10-25 15:35:26 +01:00
parent cdacb4110b
commit 08f4f6ed60
5 changed files with 46 additions and 13 deletions

View File

@@ -97,6 +97,9 @@ class ray_tracing
std::uint64_t generation{0}; // of the data of the chunk it was built from
std::uint64_t used{0}; // the frame it was last met in
VkDeviceSize bytes{0};
// the triangles of a strip or a fan, which the structure is built from and the shading reads
std::shared_ptr<buffer> indices;
VkDeviceAddress index_address{0};
};
struct frame_data
{