Download

ID3D11Device Retrieval in Plugins

Whenever I try to get the ID3D11Device, I’ve tried using GDynamicRHI->RHIGetNativeDevice( ), but always end up getting this when building:

error LNK2001: unresolved external symbol “__declspec(dllimport) class FDynamicRHI * GDynamicRHI” (_imp?GDynamicRHI@@3PEAVFDynamicRHI@@EA)

Am I going about retrieving the device wrong, or am I not realizing some build step that I should be taking?

Make sure to add the RHI module to your projects build.cs

Yup! I eventually figured that out and forgot to reply to this. Thanks!