improved vulkanbuffer
This commit is contained in:
parent
819517d150
commit
2e11ac6484
11 changed files with 396 additions and 762 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue