Hello, a week ago I started writing code for a game engine. Currently I am struggling to create textures using DirectXTK's WicTextureLoader.
The WICTextureLoader works about 50% of the time on Release the release build with CPU optimization and the ID3D11Device is not created with a debug flag. On Debug the texture loading always fails. Here is the code attempting to load textures:
Some more information:
- The swap chain and device seem to be created just fine
- The application is running in x64 mode
- CoInitializeEx is called before attempting to load the texture
- Linked libraries: assimp-vc140-mt.lib, d3d11.lib, runtimeobject.lib
- The application's window is 'frozen'; it can't be dragged around and when the cursor hovers over it, the 'loading' cursor icon is shown
I would be very grateful if someone was able to help me. Let me know if any useful information is lacking.
Cheers!