Renderer: Allow to enable or disable API validation layers using config
This commit is contained in:
@@ -38,9 +38,9 @@ namespace Nz
|
||||
return Vulkan::CreateDevice(physDevices[deviceIndex], enabledFeatures);
|
||||
}
|
||||
|
||||
bool VulkanRenderer::Prepare(const ParameterList& parameters)
|
||||
bool VulkanRenderer::Prepare(const Renderer::Config& config)
|
||||
{
|
||||
if (!Vulkan::Initialize(APIVersion, parameters))
|
||||
if (!Vulkan::Initialize(APIVersion, config.validationLevel, config.customParameters))
|
||||
return false;
|
||||
|
||||
const auto& physDevices = Vulkan::GetPhysicalDevices();
|
||||
|
||||
Reference in New Issue
Block a user