Skip to content

Commit

Permalink
fast trace flag
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNumbat committed Apr 26, 2024
1 parent 0a0a434 commit eaea7bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvk/acceleration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Opt<BLAS::Buffers> BLAS::make(Arc<Device_Memory, Alloc>& memory, Slice<const BLA
.sType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR,
.type = VK_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL_KHR,
.flags = VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR |
VK_BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_BUILD_BIT_KHR,
VK_BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_TRACE_BIT_KHR,
.mode = VK_BUILD_ACCELERATION_STRUCTURE_MODE_BUILD_KHR,
.geometryCount = static_cast<u32>(geometries.length()),
.pGeometries = geometries.data(),
Expand Down Expand Up @@ -293,7 +293,7 @@ BLAS BLAS::build(Arc<Device, Alloc> device, Commands& cmds, Buffers buffers, Buf
.sType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR,
.type = VK_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL_KHR,
.flags = VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR |
VK_BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_BUILD_BIT_KHR,
VK_BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_TRACE_BIT_KHR,
.mode = VK_BUILD_ACCELERATION_STRUCTURE_MODE_BUILD_KHR,
.dstAccelerationStructure = acceleration_structure,
.geometryCount = static_cast<u32>(geometries.length()),
Expand Down

0 comments on commit eaea7bb

Please sign in to comment.