mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 22:28:32 +09:00
[Fix] (Diligent/Init): request NativeMultiDraw feature
This commit is contained in:
@@ -734,6 +734,7 @@ namespace MG_EGL::Diligent {
|
|||||||
MG_Diligent::g_pFactory = pFactoryVk;
|
MG_Diligent::g_pFactory = pFactoryVk;
|
||||||
::Diligent::EngineVkCreateInfo EngineCI;
|
::Diligent::EngineVkCreateInfo EngineCI;
|
||||||
EngineCI.DynamicHeapSize = 512 << 20;
|
EngineCI.DynamicHeapSize = 512 << 20;
|
||||||
|
EngineCI.Features.NativeMultiDraw = DEVICE_FEATURE_STATE_OPTIONAL;
|
||||||
|
|
||||||
MG_Util::Debug::LogD("Creating Vulkan device and contexts");
|
MG_Util::Debug::LogD("Creating Vulkan device and contexts");
|
||||||
pFactoryVk->CreateDeviceAndContextsVk(
|
pFactoryVk->CreateDeviceAndContextsVk(
|
||||||
@@ -757,7 +758,8 @@ namespace MG_EGL::Diligent {
|
|||||||
default:
|
default:
|
||||||
apiVersion = "<unknown>";
|
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 {
|
} else {
|
||||||
MG_Util::Debug::LogE("Failed to create Vulkan device");
|
MG_Util::Debug::LogE("Failed to create Vulkan device");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user