Return raw bytes for compressing without direct x tex
This commit is contained in:
parent
337de8a8be
commit
82d96d4a73
Binary file not shown.
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user