edgar-mtz-e / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

DirectX 10: Cannot specify image load information when calling Texture::FromFile() #380

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Added.

Original comment by josh.petrie on 14 Dec 2008 at 12:13