Skip to content

Commit

Permalink
Utilize graphics::vulkan_struct_get_pnext
Browse files Browse the repository at this point in the history
  • Loading branch information
panos-lunarg committed Sep 6, 2024
1 parent 454ddc2 commit f19ee15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions framework/encode/vulkan_state_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -938,9 +938,8 @@ void VulkanStateTracker::TrackUpdateDescriptorSets(uint32_t w
break;
case VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV:
{
VkWriteDescriptorSetAccelerationStructureNV* write_accel_struct =
graphics::GetPNextStruct<VkWriteDescriptorSetAccelerationStructureNV>(
write, VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NV);
const VkWriteDescriptorSetAccelerationStructureNV* write_accel_struct =
graphics::vulkan_struct_get_pnext<VkWriteDescriptorSetAccelerationStructureNV>(write);

if (write_accel_struct != nullptr)
{
Expand Down

0 comments on commit f19ee15

Please sign in to comment.