This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
4,127 additions
and
1,930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// This code is in the public domain -- Ignacio Castaño <[email protected]> | ||
// This code is in the public domain -- Ignacio Castano <[email protected]> | ||
|
||
#pragma once | ||
#ifndef NV_CORE_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// This code is in the public domain -- Ignacio Castaño <[email protected]> | ||
// This code is in the public domain -- Ignacio Castano <[email protected]> | ||
#pragma once | ||
|
||
#include "nvmath.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,63 @@ | ||
PROJECT(nvtt) | ||
|
||
ADD_SUBDIRECTORY(squish) | ||
|
||
SET(NVTT_SRCS | ||
nvtt.h nvtt.cpp | ||
nvtt_wrapper.h nvtt_wrapper.cpp | ||
ClusterFit.h ClusterFit.cpp | ||
Compressor.h | ||
BlockCompressor.h BlockCompressor.cpp | ||
CompressorDX9.h CompressorDX9.cpp | ||
CompressorDX10.h CompressorDX10.cpp | ||
CompressorDX11.h CompressorDX11.cpp | ||
CompressorDXT1.h CompressorDXT1.cpp | ||
CompressorDXT5_RGBM.h CompressorDXT5_RGBM.cpp | ||
CompressorETC.h CompressorETC.cpp | ||
CompressorRGB.h CompressorRGB.cpp | ||
Context.h Context.cpp | ||
QuickCompressDXT.h QuickCompressDXT.cpp | ||
OptimalCompressDXT.h OptimalCompressDXT.cpp | ||
SingleColorLookup.h SingleColorLookup.cpp | ||
CompressionOptions.h CompressionOptions.cpp | ||
InputOptions.h InputOptions.cpp | ||
OutputOptions.h OutputOptions.cpp | ||
TaskDispatcher.h #TaskDispatcher.cpp | ||
Surface.h Surface.cpp | ||
CubeSurface.h CubeSurface.cpp | ||
cuda/CudaUtils.h cuda/CudaUtils.cpp | ||
cuda/CudaMath.h | ||
cuda/BitmapTable.h | ||
cuda/CudaCompressorDXT.h cuda/CudaCompressorDXT.cpp) | ||
|
||
IF (CUDA_FOUND) | ||
ADD_DEFINITIONS(-DHAVE_CUDA) | ||
CUDA_COMPILE(CUDA_SRCS cuda/CompressKernel.cu) | ||
SET(NVTT_SRCS ${NVTT_SRCS} ${CUDA_SRCS}) | ||
SET(LIBS ${LIBS} ${CUDA_LIBRARIES}) | ||
INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS}) | ||
ENDIF (CUDA_FOUND) | ||
|
||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) | ||
INCLUDE_DIRECTORIES(${NV_SOURCE_DIR}/extern/rg_etc1_v104) | ||
|
||
ADD_DEFINITIONS(-DNVTT_EXPORTS) | ||
|
||
IF(NVTT_SHARED) | ||
ADD_LIBRARY(nvtt SHARED ${NVTT_SRCS}) | ||
ELSE(NVTT_SHARED) | ||
ADD_LIBRARY(nvtt ${NVTT_SRCS}) | ||
ENDIF(NVTT_SHARED) | ||
|
||
TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvimage nvthread nvsquish bc6h bc7 nvmath rg_etc1) | ||
|
||
INSTALL(TARGETS nvtt | ||
RUNTIME DESTINATION bin | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib/static) | ||
|
||
INSTALL(FILES nvtt.h nvtt_wrapper.h DESTINATION include/nvtt) | ||
|
||
|
||
ADD_SUBDIRECTORY(tools) | ||
ADD_SUBDIRECTORY(tests) | ||
PROJECT(nvtt) | ||
|
||
ADD_SUBDIRECTORY(squish) | ||
|
||
SET(NVTT_SRCS | ||
nvtt.h nvtt.cpp | ||
nvtt_wrapper.h nvtt_wrapper.cpp | ||
ClusterFit.h ClusterFit.cpp | ||
Compressor.h | ||
BlockCompressor.h BlockCompressor.cpp | ||
CompressorDX9.h CompressorDX9.cpp | ||
CompressorDX10.h CompressorDX10.cpp | ||
CompressorDX11.h CompressorDX11.cpp | ||
icbc.h icbc.cpp | ||
CompressorDXT5_RGBM.h CompressorDXT5_RGBM.cpp | ||
CompressorETC.h CompressorETC.cpp | ||
CompressorRGB.h CompressorRGB.cpp | ||
Context.h Context.cpp | ||
QuickCompressDXT.h QuickCompressDXT.cpp | ||
OptimalCompressDXT.h OptimalCompressDXT.cpp | ||
SingleColorLookup.h SingleColorLookup.cpp | ||
CompressionOptions.h CompressionOptions.cpp | ||
InputOptions.h InputOptions.cpp | ||
OutputOptions.h OutputOptions.cpp | ||
TaskDispatcher.h #TaskDispatcher.cpp | ||
Surface.h Surface.cpp | ||
CubeSurface.h CubeSurface.cpp | ||
cuda/CudaUtils.h cuda/CudaUtils.cpp | ||
cuda/CudaMath.h | ||
cuda/BitmapTable.h | ||
cuda/CudaCompressorDXT.h cuda/CudaCompressorDXT.cpp) | ||
|
||
IF (CUDA_FOUND) | ||
ADD_DEFINITIONS(-DHAVE_CUDA) | ||
CUDA_COMPILE(CUDA_SRCS cuda/CompressKernel.cu) | ||
SET(NVTT_SRCS ${NVTT_SRCS} ${CUDA_SRCS}) | ||
SET(LIBS ${LIBS} ${CUDA_LIBRARIES}) | ||
INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS}) | ||
ENDIF (CUDA_FOUND) | ||
|
||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) | ||
INCLUDE_DIRECTORIES(${NV_SOURCE_DIR}/extern/rg_etc1_v104) | ||
|
||
ADD_DEFINITIONS(-DNVTT_EXPORTS) | ||
|
||
IF(NVTT_SHARED) | ||
ADD_LIBRARY(nvtt SHARED ${NVTT_SRCS}) | ||
ELSE(NVTT_SHARED) | ||
ADD_LIBRARY(nvtt ${NVTT_SRCS}) | ||
ENDIF(NVTT_SHARED) | ||
|
||
TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvimage nvthread nvsquish bc6h bc7 nvmath rg_etc1) | ||
|
||
INSTALL(TARGETS nvtt | ||
RUNTIME DESTINATION bin | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib/static) | ||
|
||
INSTALL(FILES nvtt.h nvtt_wrapper.h DESTINATION include/nvtt) | ||
|
||
|
||
ADD_SUBDIRECTORY(tools) | ||
ADD_SUBDIRECTORY(tests) |
Oops, something went wrong.