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;
}
}
+2 -2
View File
@@ -321,10 +321,10 @@ void TextureBase::executeOwnershipBarrier(Gfx::QueueType newOwner)
.image = image,
.subresourceRange = {
.aspectMask = aspect,
.baseArrayLayer = 0,
.layerCount = arrayCount,
.baseMipLevel = 0,
.levelCount = mipLevels,
.baseArrayLayer = 0,
.layerCount = arrayCount,
},
};
PCommandPool sourcePool = graphics->getQueueCommands(currentOwner);