Search Unity

issues with native plugin in directX 11

Discussion in 'Editor & General Support' started by amir, Jan 26, 2014.

  1. amir

    amir

    Joined:
    Oct 5, 2010
    Posts:
    75
    I was having issues with shadows in DirectX 11 and the Native Plugin example on DirectX 11.
    http://docs.unity3d.com/Documentation/Manual/NativePluginInterface.html

    Both the native plugin and shadows worked when I disabled DirectX 9 or ran in -force-opengl mode.

    I modified RenderingPlugin.cpp when it assigns the compiler dll, and then the Native Plugin Interface worked in DX11. I added a loadlibrary for D3DCompiler_47.dll in addition to D3DCompiler_46.dll:

    if (compiler == NULL)
    {
    // Try compiler from Windows 8 SDK
    compiler = LoadLibraryA("D3DCompiler_47.dll");
    }

    Of course it didn't effect shadows. Looks like other people have issues with that too.

    My setup is a Toshiba Qosmio with Intel graphics and NVidia 770M