Exemplo n.º 1
0
        internal static void DecompressBC6Block(byte[] Data, int Width, int Height, bool IsSigned, int pos, byte[] output, int xPos, int yPos)
        {
            var colours = BC6.DecompressBC6(Data, pos, IsSigned);

            BC7.SetColoursFromDX10(colours, output, xPos, yPos, Width);
        }
Exemplo n.º 2
0
        // BC6
        internal static void DecompressBC6Block(byte[] source, int sourceStart, byte[] destination, int decompressedStart, int decompressedLineLength, bool unused)
        {
            var colours = BC6.DecompressBC6(source, sourceStart, false);

            SetColoursFromDX10(colours, destination, decompressedStart, decompressedLineLength);
        }
Exemplo n.º 3
0
 internal static void DecompressBC6Block(ITexture texture, int pos, byte[] output, int xPos, int yPos)
 {
     DX10_Helpers.LDRColour[] colours = BC6.DecompressBC6(texture.Data, pos, texture.Format != TextureFormat.BC6H_UF16);
     BC7.SetColoursFromDX10(colours, output, xPos, yPos, texture.Width);
 }