mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
adjust code styling
This commit is contained in:
@@ -370,10 +370,10 @@ void Shader::cmdPushDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBind
|
||||
{
|
||||
VkDescriptorSet currentDescriptorSet = allocateDescriptorSet();
|
||||
|
||||
std::vector<VkDescriptorBufferInfo> bufferInfos{};
|
||||
std::vector<VkDescriptorBufferInfo> bufferInfos;
|
||||
bufferInfos.reserve(numBuffers);
|
||||
|
||||
std::vector<VkDescriptorImageInfo> imageInfos{};
|
||||
std::vector<VkDescriptorImageInfo> imageInfos;
|
||||
imageInfos.reserve(numTextures);
|
||||
|
||||
std::vector<VkBufferView> bufferViews;
|
||||
@@ -1068,9 +1068,9 @@ void Shader::createDescriptorPoolSizes()
|
||||
{
|
||||
VkDescriptorPoolSize size{};
|
||||
auto type = Vulkan::getDescriptorType(entry.second.baseType);
|
||||
if (type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER) {
|
||||
if (type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER)
|
||||
continue;
|
||||
}
|
||||
|
||||
size.type = type;
|
||||
size.descriptorCount = 1;
|
||||
descriptorPoolSizes.push_back(size);
|
||||
|
||||
Reference in New Issue
Block a user