From 948d54c6833374682d2dd9442436b8c6400ae0f4 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 1 Nov 2023 19:18:06 -0400 Subject: use convex polyhedron for debug wireframe - buggy but functional --- src/components.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/components.hpp') diff --git a/src/components.hpp b/src/components.hpp index cd79e4b..0de9592 100644 --- a/src/components.hpp +++ b/src/components.hpp @@ -22,6 +22,12 @@ struct Entity { bool isMarkedForRemoval = false; }; +struct BufferBindingDetails { + VkBuffer buffer = VK_NULL_HANDLE; + uint32_t firstBinding = 0; + uint32_t bindingCount = 0; + VkDeviceSize offsets[1] = {0}; +}; struct CompGrBinds { EntityHandle entHandle = EntityHandle_MAX; GrBindsHandle grBindsHandle = GrBindsHandle_MAX; @@ -44,6 +50,10 @@ struct CompGrBinds { uint32_t indexBindingCount = 0; VkDeviceSize indexOffsets = 0; VkDeviceSize indexCount = 0; + BufferBindingDetails physVertBD; + BufferBindingDetails physNormBD; + BufferBindingDetails physUvBD; + BufferBindingDetails physIndxBD; VkBuffer instanceBuffer = VK_NULL_HANDLE; uint32_t instanceFirstBinding = 0; uint32_t instanceBindingCount = 0; -- cgit v1.2.3