I'm trying to load a Direct Draw Surface into a Texture2D var using the SharpDX toolkit. So I created that var, called it pixel, created a dds file using paint.net and named it asdf.dds. I moved that file in the Content folder of my Project and changed the "copy to output directory" to "Copy if newer". If I now use
pixel = Content.Load<Texture2D>("asdf.dds");
I get the following exception (in german):
In SharpDX.SharpDXException ist eine Ausnahme vom Typ "SharpDX.DLL" aufgetreten, doch wurde diese im Benutzercode nicht verarbeitet.
Zusätzliche Informationen: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.
My horrible translation:
In SharpDX.SharpDXException an exception of the type "SharpDX.DLL" occured, but wasn't handed in user code. Aditional information: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.