adjust code styling

This commit is contained in:
niki
2023-08-01 14:23:10 +02:00
parent 8096cab5bc
commit 61cafd7dd4
+4 -4
View File
@@ -370,10 +370,10 @@ void Shader::cmdPushDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBind
{ {
VkDescriptorSet currentDescriptorSet = allocateDescriptorSet(); VkDescriptorSet currentDescriptorSet = allocateDescriptorSet();
std::vector<VkDescriptorBufferInfo> bufferInfos{}; std::vector<VkDescriptorBufferInfo> bufferInfos;
bufferInfos.reserve(numBuffers); bufferInfos.reserve(numBuffers);
std::vector<VkDescriptorImageInfo> imageInfos{}; std::vector<VkDescriptorImageInfo> imageInfos;
imageInfos.reserve(numTextures); imageInfos.reserve(numTextures);
std::vector<VkBufferView> bufferViews; std::vector<VkBufferView> bufferViews;
@@ -1068,9 +1068,9 @@ void Shader::createDescriptorPoolSizes()
{ {
VkDescriptorPoolSize size{}; VkDescriptorPoolSize size{};
auto type = Vulkan::getDescriptorType(entry.second.baseType); auto type = Vulkan::getDescriptorType(entry.second.baseType);
if (type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER) { if (type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER)
continue; continue;
}
size.type = type; size.type = type;
size.descriptorCount = 1; size.descriptorCount = 1;
descriptorPoolSizes.push_back(size); descriptorPoolSizes.push_back(size);