public TextureWrapper(TextureEntry tex) { Texture = tex; Width = tex.Info.Width; Height = tex.Info.Height; Depth = tex.Info.Depth; ArrayCount = 1; MipCount = tex.Info.MipCount; // Format = TextureData.ConvertFormat(tex.Info.Format); if (Formats.ContainsKey(tex.Info.Format)) { Format = Formats[tex.Info.Format]; } }
public TextureWrapper(TextureEntry tex) { Texture = tex; Width = tex.Info.Width; Height = tex.Info.Height; Depth = tex.Info.Depth; ArrayCount = 1; MipCount = tex.Info.MipCount; // Format = TextureData.ConvertFormat(tex.Info.Format); if (Formats.ContainsKey(tex.Info.Format)) { Format = Formats[tex.Info.Format]; } SurfaceType = (SurfaceType)tex.Info.Type; ImageSize = tex.Info.ImageSize; HeaderSize = tex.Info.HeaderSize; if (SurfaceType == SurfaceType.T_Cube || SurfaceType == SurfaceType.T_Cube_Array) { ArrayCount = 6; } }