From 4740f6b8efc014cbf7a4354ec33c8c29894762b6 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 12 Mar 2023 16:07:41 +0100 Subject: Fix some compilation warnings + release build Fix element by element copy of imgui vertices --- api-test/vk-bindless.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'api-test/vk-bindless.cpp') diff --git a/api-test/vk-bindless.cpp b/api-test/vk-bindless.cpp index c27211f..66fd59c 100644 --- a/api-test/vk-bindless.cpp +++ b/api-test/vk-bindless.cpp @@ -151,14 +151,14 @@ void bindless_model::create_layout(VkDevice device) { { .binding = 1U, .descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, - .descriptorCount = set_descriptors_count[BindlessSetType::GLOBAL], + .descriptorCount = set_descriptors_count, .stageFlags = VK_SHADER_STAGE_COMPUTE_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, .pImmutableSamplers = nullptr, }, { .binding = 2U, .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, - .descriptorCount = set_descriptors_count[BindlessSetType::GLOBAL], + .descriptorCount = set_descriptors_count, .stageFlags = VK_SHADER_STAGE_COMPUTE_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, .pImmutableSamplers = nullptr, }, @@ -254,19 +254,19 @@ void bindless_model::create_descriptor_pool(VkDevice device) { VkDescriptorPoolSize pool_sizes[]{ { .type = VK_DESCRIPTOR_TYPE_SAMPLER, - .descriptorCount = set_descriptors_count[BindlessSetType::MAX], + .descriptorCount = set_descriptors_count, }, { .type = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, - .descriptorCount = set_descriptors_count[BindlessSetType::MAX], + .descriptorCount = set_descriptors_count, }, { .type = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, - .descriptorCount = set_descriptors_count[BindlessSetType::MAX], + .descriptorCount = set_descriptors_count, }, { .type = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, - .descriptorCount = set_descriptors_count[BindlessSetType::MAX], + .descriptorCount = set_descriptors_count, }, }; -- cgit v1.3