| void Spices::VulkanRayTracing::BuildTLAS | ( | const std::vector< VkAccelerationStructureInstanceKHR > & | instances, |
| VkBuildAccelerationStructureFlagsKHR | flags = VK_BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_TRACE_BIT_KHR, | ||
| bool | update = false ) |
Creating the top-level acceleration structure from the vector of Instance. The resulting TLAS will be stored in m_tlas. update is to rebuild the Tlas with updated matrices.
| [in] | instances | Scene MeshPack Instances data. |
| [in] | flags | VkBuildAccelerationStructureFlagsKHR. |
| [in] | update | True if want update rather than create new one. |
Definition at line 218 of file VulkanRayTracing.cpp.