Make the vk_rayquery cvar a bit more robust
This commit is contained in:
parent
d7dcf60c7b
commit
e7e89fce09
6 changed files with 12 additions and 17 deletions
|
|
@ -28,11 +28,9 @@
|
|||
#include "hw_material.h"
|
||||
#include "texturemanager.h"
|
||||
|
||||
EXTERN_CVAR(Bool, vk_rayquery);
|
||||
|
||||
VkLevelMesh::VkLevelMesh(VulkanRenderDevice* fb) : fb(fb)
|
||||
{
|
||||
useRayQuery = vk_rayquery && fb->GetDevice()->SupportsExtension(VK_KHR_RAY_QUERY_EXTENSION_NAME) && fb->GetDevice()->PhysicalDevice.Features.RayQuery.rayQuery;
|
||||
useRayQuery = fb->IsRayQueryEnabled();
|
||||
|
||||
SetLevelMesh(nullptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue