From 75acd0104448d7c5f43f99700decff39b8a034b2 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Fri, 3 Feb 2023 00:15:19 +0100 Subject: Graphics pipeline and rendering implementation --- include/api-test/vk-bindless.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/api-test/vk-bindless.hpp') 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 uniform_buffer; + handle instances_uniform_buffer_handle; + handle 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]; -- cgit v1.3