Fix build. Minor cleanups.
This commit is contained in:
parent
cfdc731634
commit
1e0dea0738
|
@ -61,7 +61,7 @@ ELSE(NVTT_SHARED)
|
||||||
ADD_LIBRARY(nvtt ${NVTT_SRCS})
|
ADD_LIBRARY(nvtt ${NVTT_SRCS})
|
||||||
ENDIF(NVTT_SHARED)
|
ENDIF(NVTT_SHARED)
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvmath nvimage squish)
|
TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvmath nvimage squish bc6h)
|
||||||
|
|
||||||
INSTALL(TARGETS nvtt
|
INSTALL(TARGETS nvtt
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
|
|
|
@ -29,6 +29,9 @@
|
||||||
#include "bc6h/zoh.h"
|
#include "bc6h/zoh.h"
|
||||||
#include "bc6h/utils.h"
|
#include "bc6h/utils.h"
|
||||||
|
|
||||||
|
//#include "bc7/avpcl.h"
|
||||||
|
//#include "bc7/utils.h"
|
||||||
|
|
||||||
using namespace nv;
|
using namespace nv;
|
||||||
using namespace nvtt;
|
using namespace nvtt;
|
||||||
|
|
||||||
|
@ -52,3 +55,7 @@ void CompressorBC6::compressBlock(Tile & tile, AlphaMode alphaMode, const Compre
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CompressorBC7::compressBlock(Tile & tile, AlphaMode alphaMode, const CompressionOptions::Private & compressionOptions, void * output)
|
||||||
|
{
|
||||||
|
// @@ TODO
|
||||||
|
}
|
||||||
|
|
|
@ -20,6 +20,8 @@ using namespace nv;
|
||||||
static int denom7_weights_64[] = {0, 9, 18, 27, 37, 46, 55, 64}; // divided by 64
|
static int denom7_weights_64[] = {0, 9, 18, 27, 37, 46, 55, 64}; // divided by 64
|
||||||
static int denom15_weights_64[] = {0, 4, 9, 13, 17, 21, 26, 30, 34, 38, 43, 47, 51, 55, 60, 64}; // divided by 64
|
static int denom15_weights_64[] = {0, 4, 9, 13, 17, 21, 26, 30, 34, 38, 43, 47, 51, 55, 60, 64}; // divided by 64
|
||||||
|
|
||||||
|
/*static*/ Format Utils::FORMAT;
|
||||||
|
|
||||||
int Utils::lerp(int a, int b, int i, int denom)
|
int Utils::lerp(int a, int b, int i, int denom)
|
||||||
{
|
{
|
||||||
nvDebugCheck (denom == 3 || denom == 7 || denom == 15);
|
nvDebugCheck (denom == 3 || denom == 7 || denom == 15);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user