mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
adjust code styling
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user