SpiecsEngine
 
Loading...
Searching...
No Matches

◆ BuildTLAS() [2/2]

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.

Parameters
[in]instancesScene MeshPack Instances data.
[in]flagsVkBuildAccelerationStructureFlagsKHR.
[in]updateTrue if want update rather than create new one.

Definition at line 218 of file VulkanRayTracing.cpp.

223 {
225
226 BuildTLAS(instances, flags, update, false);
227 }
#define SPICES_PROFILE_ZONE
void 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...