summaryrefslogtreecommitdiff
path: root/src/components.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-11-01 19:18:06 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-11-15 13:13:27 -0500
commit948d54c6833374682d2dd9442436b8c6400ae0f4 (patch)
tree2443759edbc9310af052e271caf8725f4380275d /src/components.hpp
parentea7ba25b9df7380caa9ee31a0b2bc33cf7219ad7 (diff)
use convex polyhedron for debug wireframe - buggy but functional
Diffstat (limited to 'src/components.hpp')
-rw-r--r--src/components.hpp10
1 files changed, 10 insertions, 0 deletions
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;