vulkan animation
This commit is contained in:
parent
1d0b7a615b
commit
db1616ff0e
4 changed files with 30 additions and 6 deletions
|
|
@ -116,4 +116,14 @@ void RenderingElement3DVulkan::BuildTLAS(VkCommandBuffer cmd, std::uint32_t inde
|
|||
|
||||
VkAccelerationStructureBuildRangeInfoKHR* tlasRangeInfoPP = &tlasRangeInfo;
|
||||
VulkanDevice::vkCmdBuildAccelerationStructuresKHR(cmd, 1, &tlasBuildGeometryInfo, &tlasRangeInfoPP);
|
||||
|
||||
vkCmdPipelineBarrier(
|
||||
cmd,
|
||||
VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_KHR,
|
||||
VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR,
|
||||
0,
|
||||
0, nullptr,
|
||||
0, nullptr,
|
||||
0, nullptr
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue