Im trying to create a texture that has Dxt1 compressed data. So basically the format Format.Dxt1 from SlimDX.Direct3D9.Format enumeration. In order to do this im using BC1_UNorm in D3D11 as a format as thats what i could read is the correct format in D3D11. Well, there is a problem with that format:
My texture has several mip levels already defined but when i set a mip level other to 1 the texture creation fails with D3DERR_INVALID_ARG, including 0 which is supposed by the MSDN for a full set of mip maps.
[source lang="csharp"] Texture2DDescription desc = new Texture2DDescription() { Usage = ResourceUsage.Dynamic, SampleDescription = new SampleDescription(1, 0), OptionFlags = ResourceOptionFlags.None, MipLevels = levelCount, Width = width, Height = height, Format = texFmt, CpuAccessFlags = CpuAccessFlags.Write, BindFlags = BindFlags.ShaderResource, ArraySize = 1 };[/source]
Where:
levelCount in a particular case is 9, width and height are 256, texFmt is BC1_UNorm.
How do i create a texture with S3TC and several mip levels?
Greetings and thanks in advance
Plerion
Edited by Plerion, 21 September 2012 - 04:26 PM.






