aboutsummaryrefslogtreecommitdiffstats
path: root/include/api-test/vk-bindless.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2023-02-03 00:15:19 +0100
committerladevieq <ladevie.quentin@gmail.com>2023-02-03 00:15:19 +0100
commit75acd0104448d7c5f43f99700decff39b8a034b2 (patch)
tree1b22b1ce10f24c8ef41b3ab1110a30c545e3cc66 /include/api-test/vk-bindless.hpp
parentddff2fa5d0cbae17cb819c91bad0a79105ba0ea7 (diff)
Graphics pipeline and rendering implementation
Diffstat (limited to 'include/api-test/vk-bindless.hpp')
-rw-r--r--include/api-test/vk-bindless.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/api-test/vk-bindless.hpp b/include/api-test/vk-bindless.hpp
index c292878..80918fe 100644
--- a/include/api-test/vk-bindless.hpp
+++ b/include/api-test/vk-bindless.hpp
@@ -8,7 +8,8 @@
enum BindlessSetType : uint32_t {
GLOBAL,
- UNIFORMS,
+ INSTANCES_UNIFORMS,
+ DRAWS_UNIFORMS,
MAX,
};
@@ -34,7 +35,8 @@ struct bindless_model {
private:
VkDescriptorSetLayout sets_layout[BindlessSetType::MAX];
VkDescriptorPool descriptor_pool;
- handle<device_buffer> uniform_buffer;
+ handle<device_buffer> instances_uniform_buffer_handle;
+ handle<device_buffer> draws_uniform_buffer_handle;
static constexpr size_t descriptor_pool_allocable_sets_count = 64U;
static constexpr uint32_t set_descriptors_count[BindlessSetType::MAX]{ 1024U };
@@ -50,6 +52,9 @@ private:
void destroy_immutable_samplers(VkDevice device);
VkSampler samplers[SamplerType::MAX_SAMPLER];
+
+ static constexpr size_t instances_uniform_buffer_size = 64ULL * 1024ULL;
+ static constexpr size_t draws_uniform_buffer_size = 64ULL * 1024ULL;
#else
VkPipelineLayout layout;
VkDescriptorSetLayout sets_layout[BindlessSetType::MAX];