Skip to content

Commit b5d167c

Browse files
author
onepiecefreak3
committed
Convert GlinternalFormat and DxgiFormat into CompressionFormat in BcDecoder;
Add progress wrapping for multiple mipmap decoding;
1 parent dda0066 commit b5d167c

9 files changed

Lines changed: 363 additions & 187 deletions

File tree

BCnEnc.Net/Decoder/BcBlockDecoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal abstract class BaseBcBlockDecoder<T> : IBcBlockDecoder where T : unmana
4747
if (context.Progress != null)
4848
{
4949
var progressValue = Interlocked.Add(ref currentBlocks, 1);
50-
context.Progress.Report(new ProgressElement(progressValue, output.Length));
50+
context.Progress.Report(progressValue);
5151
}
5252
});
5353
}
@@ -62,7 +62,7 @@ internal abstract class BaseBcBlockDecoder<T> : IBcBlockDecoder where T : unmana
6262

6363
output[x, y] = DecodeBlock(encodedBlocks[x + y * blockWidth]);
6464

65-
context.Progress?.Report(new ProgressElement(currentBlocks++, output.Length));
65+
context.Progress?.Report(currentBlocks++);
6666
}
6767
}
6868
}

0 commit comments

Comments
 (0)