1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Return raw bytes for compressing without direct x tex

This commit is contained in:
KillzXGaming 2019-07-22 21:18:52 -04:00
parent 337de8a8be
commit 82d96d4a73
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -605,6 +605,9 @@ namespace Toolbox.Library
public static byte[] CompressBlock(byte[] data, int width, int height, TEX_FORMAT format, float alphaRef, STCompressionMode CompressionMode = STCompressionMode.Fast)
{
if (!Runtime.UseDirectXTexDecoder)
return data;
if (IsCompressed(format))
return DDSCompressor.CompressBlock(data, width, height, (DDS.DXGI_FORMAT)format, alphaRef, CompressionMode);
else if (IsAtscFormat(format))