D3DXCreateTextureFromFile will not load certain formats
Posted on 2003-02-21
I am working on a DirectX 7 based 2D engine using Direct3D for transparency effects.
I need to load textures onto surfaces and have been using the D3DXCreateTextureFromFile function to do so. I have created an A8R8G8B8 128x128 texture using the DirectX Texture Tool. However, when I specify D3DX_SF_A8R8G8B8 as the surface format in the D3DXCreateTextureFromFile(), I get an E_INVALIDARG error returned. Up to this point, I have been using DXT3 textures for my textures because they are the only textures that work when I specify a D3DX_SF_A8R8G8B8 format, but I need better quality than the DXT3 can supply at this point.
Any help here?