A bit of light culling refactor

This commit is contained in:
Dynamitos
2024-02-01 22:54:20 +01:00
parent 36aec0fa06
commit 18d22aeb4f
4 changed files with 20 additions and 21 deletions
+3 -2
View File
@@ -36,10 +36,11 @@ Graphics::~Graphics()
vkDeviceWaitIdle(handle);
pipelineCache = nullptr;
allocator = nullptr;
destructionManager = nullptr;
allocatedFramebuffers.clear();
shaderCompiler = nullptr;
pools.clear();
queues.clear();
destructionManager = nullptr;
vkDestroyDevice(handle, nullptr);
DestroyDebugUtilsMessengerEXT(instance, nullptr, callback);
vkDestroyInstance(instance, nullptr);
@@ -483,7 +484,7 @@ void Graphics::pickPhysicalDevice()
{
if (std::strcmp(VK_EXT_MESH_SHADER_EXTENSION_NAME, extensionProps[i].extensionName) == 0)
{
//meshShadingEnabled = true;
meshShadingEnabled = true;
break;
}
}