[Fix] (Diligent/Init): request NativeMultiDraw feature

This commit is contained in:
2025-07-08 15:41:10 +08:00
parent 9db24e6593
commit ad626025d5
@@ -734,6 +734,7 @@ namespace MG_EGL::Diligent {
MG_Diligent::g_pFactory = pFactoryVk;
::Diligent::EngineVkCreateInfo EngineCI;
EngineCI.DynamicHeapSize = 512 << 20;
EngineCI.Features.NativeMultiDraw = DEVICE_FEATURE_STATE_OPTIONAL;
MG_Util::Debug::LogD("Creating Vulkan device and contexts");
pFactoryVk->CreateDeviceAndContextsVk(
@@ -757,7 +758,8 @@ namespace MG_EGL::Diligent {
default:
apiVersion = "<unknown>";
}
MG_Util::Debug::LogD("Running on %s, %s", MG_Diligent::g_pDevice->GetAdapterInfo().Description, apiVersion.c_str());
MG_Util::Debug::LogI("Running on %s, %s", MG_Diligent::g_pDevice->GetAdapterInfo().Description, apiVersion.c_str());
MG_Util::Debug::LogI("NativeMultiDraw is%s supported.", (MG_Diligent::g_pDevice->GetDeviceInfo().Features.NativeMultiDraw != DEVICE_FEATURE_STATE_DISABLED) ? " " : " not");
} else {
MG_Util::Debug::LogE("Failed to create Vulkan device");
}