summaryrefslogtreecommitdiff
path: root/src/components.hpp
diff options
context:
space:
mode:
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;