mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
419b342a9a
Make BC6 and BC7 CVTT faster while still having better quality than DXT5.
17 lines
706 B
C++
17 lines
706 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "ConvectionKernels_BC6H_IO.h"
|
|
|
|
namespace cvtt
|
|
{
|
|
namespace BC6H_IO
|
|
{
|
|
typedef void (*ReadFunc_t)(const uint32_t *encoded, uint16_t &d, uint16_t &rw, uint16_t &rx, uint16_t &ry, uint16_t &rz, uint16_t &gw, uint16_t &gx, uint16_t &gy, uint16_t &gz, uint16_t &bw, uint16_t &bx, uint16_t &by, uint16_t &bz);
|
|
typedef void (*WriteFunc_t)(uint32_t *encoded, uint16_t m, uint16_t d, uint16_t rw, uint16_t rx, uint16_t ry, uint16_t rz, uint16_t gw, uint16_t gx, uint16_t gy, uint16_t gz, uint16_t bw, uint16_t bx, uint16_t by, uint16_t bz);
|
|
|
|
extern const ReadFunc_t g_readFuncs[14];
|
|
extern const WriteFunc_t g_writeFuncs[14];
|
|
}
|
|
}
|