- Fix VkRaytrace::Raytrace not working properly if called multiple times per frame.

- Only call VkRaytrace::Raytrace once per scene
This commit is contained in:
Magnus Norddahl 2023-09-16 05:12:31 +02:00
commit 2178de0c6c
4 changed files with 10 additions and 7 deletions

View file

@ -486,6 +486,7 @@ void VulkanRenderDevice::BeginFrame()
for (auto& renderstate : mRenderState)
renderstate->BeginFrame();
mDescriptorSetManager->BeginFrame();
mLightmap->BeginFrame();
}
void VulkanRenderDevice::Draw2D()