@@ -245,7 +245,7 @@ public static int DecompressDXT3<TOutputColor, TOutputChannel>(ReadOnlySpan<byte
245245 uint d = ToUInt32 ( input , offset + 12 ) ;
246246 for ( int i = 0 ; i < 16 ; i ++ , d >>= 2 )
247247 {
248- buffer [ i ] . SetConvertedChannels < TOutputColor , TOutputChannel , ColorRGB < byte > , byte > ( colors [ unchecked ( ( int ) ( d & 3 ) ) ] , alphas [ i ] ) ;
248+ buffer [ i ] . SetConvertedChannels < TOutputColor , TOutputChannel , byte > ( colors [ unchecked ( ( int ) ( d & 3 ) ) ] , alphas [ i ] ) ;
249249 }
250250
251251 int clen = s < bcw - 1 ? 4 : clen_last ;
@@ -348,8 +348,8 @@ public static int DecompressDXT5<TOutputColor, TOutputChannel>(ReadOnlySpan<byte
348348 for ( int s = 0 ; s < bcw ; s ++ , offset += 16 )
349349 {
350350 byte a0 = input [ offset + 0 ] ;
351- byte a1 = input [ offset + 1 ] ;
352- alphas [ 0 ] = a0 ;
351+ byte a1 = input [ offset + 1 ] ;
352+ alphas [ 0 ] = a0 ;
353353 alphas [ 1 ] = a1 ;
354354 if ( a0 > a1 )
355355 {
@@ -391,7 +391,7 @@ public static int DecompressDXT5<TOutputColor, TOutputChannel>(ReadOnlySpan<byte
391391 uint dc = ToUInt32 ( input , offset + 12 ) ;
392392 for ( int i = 0 ; i < 16 ; i ++ , da >>= 3 , dc >>= 2 )
393393 {
394- buffer [ i ] . SetConvertedChannels < TOutputColor , TOutputChannel , ColorRGB < byte > , byte > ( colors [ unchecked ( ( int ) ( dc & 3 ) ) ] , alphas [ unchecked ( ( int ) ( da & 7 ) ) ] ) ;
394+ buffer [ i ] . SetConvertedChannels < TOutputColor , TOutputChannel , byte > ( colors [ unchecked ( ( int ) ( dc & 3 ) ) ] , alphas [ unchecked ( ( int ) ( da & 7 ) ) ] ) ;
395395 }
396396
397397 int clen = s < bcw - 1 ? 4 : clen_last ;
0 commit comments