Skip to content

Commit

Permalink
Fix tabs & spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
deprilula28 committed Mar 13, 2024
1 parent 79c3a23 commit 6b5630d
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions src/nbl/video/CVulkanLogicalDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,18 +745,18 @@ void CVulkanLogicalDevice::nullifyDescriptors_impl(const std::span<const IGPUDes
size_t descriptorSize;
switch (asset::IDescriptor::GetTypeCategory(descriptorType))
{
case asset::IDescriptor::EC_BUFFER:
descriptorSize = sizeof(VkDescriptorBufferInfo);
break;
case asset::IDescriptor::EC_IMAGE:
descriptorSize = sizeof(VkDescriptorImageInfo);
break;
case asset::IDescriptor::EC_BUFFER_VIEW:
descriptorSize = sizeof(VkBufferView);
break;
case asset::IDescriptor::EC_ACCELERATION_STRUCTURE:
descriptorSize = sizeof(VkAccelerationStructureKHR);
break;
case asset::IDescriptor::EC_BUFFER:
descriptorSize = sizeof(VkDescriptorBufferInfo);
break;
case asset::IDescriptor::EC_IMAGE:
descriptorSize = sizeof(VkDescriptorImageInfo);
break;
case asset::IDescriptor::EC_BUFFER_VIEW:
descriptorSize = sizeof(VkBufferView);
break;
case asset::IDescriptor::EC_ACCELERATION_STRUCTURE:
descriptorSize = sizeof(VkAccelerationStructureKHR);
break;
}
maxSize = core::max(maxSize, write.count * descriptorSize);
}
Expand All @@ -779,21 +779,21 @@ void CVulkanLogicalDevice::nullifyDescriptors_impl(const std::span<const IGPUDes
outWrite->descriptorCount = write.count;
switch (asset::IDescriptor::GetTypeCategory(descriptorType))
{
case asset::IDescriptor::EC_BUFFER:
outWrite->pBufferInfo = reinterpret_cast<VkDescriptorBufferInfo*>(nullDescriptors.data());
break;
case asset::IDescriptor::EC_IMAGE:
outWrite->pImageInfo = reinterpret_cast<VkDescriptorImageInfo*>(nullDescriptors.data());
break;
case asset::IDescriptor::EC_BUFFER_VIEW:
outWrite->pTexelBufferView = reinterpret_cast<VkBufferView*>(nullDescriptors.data());
break;
case asset::IDescriptor::EC_ACCELERATION_STRUCTURE:
outWriteAS->accelerationStructureCount = write.count;
outWriteAS->pAccelerationStructures = reinterpret_cast<VkAccelerationStructureKHR*>(nullDescriptors.data());
break;
default:
assert(!"Invalid code path.");
case asset::IDescriptor::EC_BUFFER:
outWrite->pBufferInfo = reinterpret_cast<VkDescriptorBufferInfo*>(nullDescriptors.data());
break;
case asset::IDescriptor::EC_IMAGE:
outWrite->pImageInfo = reinterpret_cast<VkDescriptorImageInfo*>(nullDescriptors.data());
break;
case asset::IDescriptor::EC_BUFFER_VIEW:
outWrite->pTexelBufferView = reinterpret_cast<VkBufferView*>(nullDescriptors.data());
break;
case asset::IDescriptor::EC_ACCELERATION_STRUCTURE:
outWriteAS->accelerationStructureCount = write.count;
outWriteAS->pAccelerationStructures = reinterpret_cast<VkAccelerationStructureKHR*>(nullDescriptors.data());
break;
default:
assert(!"Invalid code path.");
}
outWrite++;
}
Expand Down

0 comments on commit 6b5630d

Please sign in to comment.