Internally the Texture::FromFile() method uses D3DX10CreateTextureFromFile()
D3DX10CreateTextureFromFile() accepts a D3DX10_IMAGE_LOAD_INFO as one of
its parameters to specify how you want the texture to be loaded
e.g width/height/mip levels etc etc
With SlimDX its impossible to use this since the entire
D3DX10_IMAGE_LOAD_INFO is not supported (yet)
In my opionion the following new methods need to be added:
Texture::FromFile(Device device, string filename, ImageLoadInfo info);
Texture::FromStream(Device device, string filename, ImageLoadInfo info);
together with the ImageLoadInfo class which maps directly to
D3DX10_IMAGE_LOAD_INFO
Original issue reported on code.google.com by e.beck...@gmail.com on 12 Dec 2008 at 8:25
Original issue reported on code.google.com by
e.beck...@gmail.com
on 12 Dec 2008 at 8:25