Skip to content

Commit

Permalink
fix a typo in Descriptor Sets relating to Acceleration Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
devshgraphicsprogramming committed Mar 22, 2023
1 parent 73fcc8c commit 1b91f2d
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions include/nbl/video/CVulkanCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -787,27 +787,29 @@ static inline constexpr VkDescriptorType getVkDescriptorTypeFromDescriptorType(c
{
switch (descriptorType)
{
case asset::IDescriptor::E_TYPE::ET_COMBINED_IMAGE_SAMPLER:
return VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
case asset::IDescriptor::E_TYPE::ET_STORAGE_IMAGE:
return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE;
case asset::IDescriptor::E_TYPE::ET_UNIFORM_TEXEL_BUFFER:
return VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER;
case asset::IDescriptor::E_TYPE::ET_STORAGE_TEXEL_BUFFER:
return VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER;
case asset::IDescriptor::E_TYPE::ET_UNIFORM_BUFFER:
return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
case asset::IDescriptor::E_TYPE::ET_STORAGE_BUFFER:
return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
case asset::IDescriptor::E_TYPE::ET_UNIFORM_BUFFER_DYNAMIC:
return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC;
case asset::IDescriptor::E_TYPE::ET_STORAGE_BUFFER_DYNAMIC:
return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC;
case asset::IDescriptor::E_TYPE::ET_INPUT_ATTACHMENT:
return VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT;
default:
assert(!"Invalid code path.");
return VK_DESCRIPTOR_TYPE_MAX_ENUM;
case asset::IDescriptor::E_TYPE::ET_COMBINED_IMAGE_SAMPLER:
return VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
case asset::IDescriptor::E_TYPE::ET_STORAGE_IMAGE:
return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE;
case asset::IDescriptor::E_TYPE::ET_UNIFORM_TEXEL_BUFFER:
return VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER;
case asset::IDescriptor::E_TYPE::ET_STORAGE_TEXEL_BUFFER:
return VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER;
case asset::IDescriptor::E_TYPE::ET_UNIFORM_BUFFER:
return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
case asset::IDescriptor::E_TYPE::ET_STORAGE_BUFFER:
return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
case asset::IDescriptor::E_TYPE::ET_UNIFORM_BUFFER_DYNAMIC:
return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC;
case asset::IDescriptor::E_TYPE::ET_STORAGE_BUFFER_DYNAMIC:
return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC;
case asset::IDescriptor::E_TYPE::ET_INPUT_ATTACHMENT:
return VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT;
case asset::IDescriptor::E_TYPE::ET_ACCELERATION_STRUCTURE:
return VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR;
default:
assert(!"Invalid code path.");
return VK_DESCRIPTOR_TYPE_MAX_ENUM;
}
}
static inline IPhysicalDevice::E_DRIVER_ID getDriverIdFromVkDriverId(const VkDriverId in)
Expand Down

0 comments on commit 1b91f2d

Please sign in to comment.