Hi @florianpenzkofer , I’m trying to get the vkCreateDevice hook working, but it seems like the device has already been created by the time the plugin is loaded.
if (s_Graphics->GetRenderer() == kUnityGfxRendererNull)
{
extern void RenderAPI_Vulkan_OnPluginLoad(IUnityInterfaces*);
RenderAPI_Vulkan_OnPluginLoad(unityInterfaces);
}
At this point, s_Graphics->GetRenderer() returns kUnityGfxRendererVulkan, and even if I force it into RenderAPI_Vulkan_OnPluginLoad, the vkCreateDevice hook is not called, further indicating that the device has already been created.