blob: f0a46a9f770e8a5c804a2e329f99752f8bb738c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef PKE_COMPONENTS_HPP
#define PKE_COMPONENTS_HPP
#include"macros.hpp"
#include <vulkan/vulkan_core.h>
const uint64_t ECS_UNSET_VAL = 0xFFFFFFFFFFFFFFFF;
TypeSafeInt_H(EntityHandle, uint64_t, UINT64_MAX);
TypeSafeInt_H(GrBindsHandle, uint64_t, UINT64_MAX);
struct Entity {
EntityHandle handle = EntityHandle{EntityHandle_T{ECS_UNSET_VAL}};
EntityHandle parentHandle = EntityHandle{EntityHandle_T{ECS_UNSET_VAL}};
bool isMarkedForRemoval = false;
GrBindsHandle grBindsHandle = GrBindsHandle{GrBindsHandle_T{ECS_UNSET_VAL}};
};
struct GrBindsComp {
VkBuffer vertexBuffer = VK_NULL_HANDLE;
uint32_t vertexFirstBinding = 0;
uint32_t vertexCount = 0;
VkDeviceSize vertexOffsets = 0;
VkBuffer indexBuffer = VK_NULL_HANDLE;
uint32_t indexFirstBinding = 0;
uint32_t indexCount = 0;
VkDeviceSize indexOffsets = 0;
VkBuffer instanceBuffer = VK_NULL_HANDLE;
uint32_t instanceFirstBinding = 0;
uint32_t instanceCount = 0;
VkDeviceSize instanceOffsets = 0;
VkPipelineLayout vkPipelineLayout = VK_NULL_HANDLE;
VkDescriptorSet vkDescriptorSet = VK_NULL_HANDLE;
};
#endif /* PKE_COMPONENTS_HPP */
|