- Home /
Native plugin device not created with D3D11_CREATE_DEVICE_BGRA_SUPPORT on deploy only
I'm creating a native plugin for Unity, and when it gets the device from unity, a call to GetCreationFlags shows that the device in the editor was created with D3D11_CREATE_DEVICE_BGRA_SUPPORT, but the deployed project's device was not. This is a problem because ID2D1Device::CreateDevice doesn't work against a device without this flag. Is there a way to tell Unity to include it?
I have it on reasonably good authority that there is no simple solution other than to create a separate device and use shared resources between the two.
Your answer
Follow this Question
Related Questions
Game Always Crashes On Some Android Devices 0 Answers
Accessing config file from C/C++ android native plugin 1 Answer
Mediatek MTK6516 ARM9 With Unity? 1 Answer
Optimizing coroutines? 2 Answers
Why my app supports fewer devices? 1 Answer