Fix node buffers not working for the rayquery polyfill shader path

Rearrange how the upload code is done for the level mesh
This commit is contained in:
Magnus Norddahl 2023-09-30 01:31:07 +02:00
commit 757320c5bc
5 changed files with 232 additions and 187 deletions

View file

@ -29,7 +29,7 @@ CVAR(Float, lm_scale, 1.0, CVAR_NOSAVE);
VkLightmap::VkLightmap(VulkanRenderDevice* fb) : fb(fb)
{
useRayQuery = fb->GetDevice()->PhysicalDevice.Features.RayQuery.rayQuery;
useRayQuery = fb->GetDevice()->SupportsExtension(VK_KHR_RAY_QUERY_EXTENSION_NAME) && fb->GetDevice()->PhysicalDevice.Features.RayQuery.rayQuery;
templightlist.Resize(128);