aboutsummaryrefslogtreecommitdiffstats
path: root/api-test/vk-bindless.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2023-03-12 16:07:41 +0100
committerladevieq <ladevie.quentin@gmail.com>2023-03-12 16:07:41 +0100
commit4740f6b8efc014cbf7a4354ec33c8c29894762b6 (patch)
tree997d4ec7d2fe2c2f2506a2d5343babce7e930581 /api-test/vk-bindless.cpp
parenta87ad2eac867b77a75e05ad48bb3ee622e5735d3 (diff)
Fix some compilation warnings + release build
Fix element by element copy of imgui vertices
Diffstat (limited to 'api-test/vk-bindless.cpp')
-rw-r--r--api-test/vk-bindless.cpp12
1 files changed, 6 insertions, 6 deletions
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,
},
};