improved vulkanbuffer

This commit is contained in:
Jorijn van der Graaf 2026-01-28 18:51:11 +01:00
commit 2e11ac6484
11 changed files with 396 additions and 762 deletions

View file

@ -19,10 +19,12 @@ int main() {
*/
VkCommandBuffer cmd = window.StartInit();
Mesh triangle;
Mesh triangleMesh;
std::array<Vertex, 3> verts {{{-0.1, 0, 0}, {0, 0.1, 0}, {0.1, 0, 0}}};
std::array<std::uint32_t, 3> index {{0,1,2}};
triangle.Build(verts, index, cmd);
triangleMesh.Build(verts, index, cmd);
// RenderingElement3DVulkan::elements.emplace_back(triangleMesh);
// RenderingElement3DVulkan::BuildTLAS(cmd);
/*
FinishInit executes all commands recorded to StartInit.