Skip to content

Commit

Permalink
Support acceleration structures in erupt
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarumych committed May 17, 2021
1 parent 218dc56 commit 8b07ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erupt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ impl DescriptorDevice<vk1_0::DescriptorSetLayout, vk1_0::DescriptorPool, vk1_0::
}

if descriptor_count.acceleration_structure != 0 {
panic!("Acceleration structures are not supported");
array[len]._type = vk1_0::DescriptorType::ACCELERATION_STRUCTURE_KHR;
array[len].descriptor_count = descriptor_count.acceleration_structure;
len += 1;
}

if descriptor_count.inline_uniform_block_bytes != 0 {
Expand Down

0 comments on commit 8b07ee9

Please sign in to comment.