Compare commits
519 Commits
Author | SHA1 | Date | |
---|---|---|---|
b1a90f3601 | |||
72dd3db723 | |||
4754e526ce | |||
f7e037d1c1 | |||
b4da3c68f0 | |||
46d1179b17 | |||
e5cf10de0e | |||
13121bf32e | |||
9870cfbf90 | |||
e4301b3df7 | |||
831c8e6667 | |||
be5a305081 | |||
5932492d8a | |||
09164a5fd3 | |||
2ab73d8cd5 | |||
a4712cff20 | |||
93146ffc73 | |||
dd6b750942 | |||
b06d5aba59 | |||
9d93fccb37 | |||
2b3ffac418 | |||
7525d356a0 | |||
cb21ee18a1 | |||
e5be4a615f | |||
c4aefe530c | |||
a77953a306 | |||
6b9a6abccb | |||
8dc9df25d7 | |||
614a7a4b82 | |||
61935ffa08 | |||
6f3d02deab | |||
cfa3fc528e | |||
b4cf9bc3f6 | |||
967278d579 | |||
aa8514e65d | |||
b4eb9c5972 | |||
eb34681ce8 | |||
aeb84b5ffa | |||
d73335fb82 | |||
1aa1b038e8 | |||
26a56414c5 | |||
8baac9b111 | |||
2bd1ed1ba7 | |||
8fb22e951e | |||
ea53e0b1ee | |||
721cc85da7 | |||
446e4b4611 | |||
0be40976a2 | |||
bf4799c9ac | |||
bfd1a38a86 | |||
ba3dbe32df | |||
7aebf0c251 | |||
c87706f2a4 | |||
e5b93bbfe8 | |||
d09dd24ce9 | |||
7894e9e6f8 | |||
07d9ab7860 | |||
4ff7af50ca | |||
1e06539012 | |||
fdfbfb2552 | |||
0f98a936f8 | |||
3e034d2de1 | |||
0297a00ebc | |||
8e64503338 | |||
a671567596 | |||
daff42781d | |||
1a6e70c9a0 | |||
860b639492 | |||
52e065d66a | |||
0b15c58692 | |||
504ecc8e10 | |||
f68d894b8b | |||
5eac5a4859 | |||
ca3871a28c | |||
adce1a00da | |||
7f9c87713a | |||
4f0ecc4506 | |||
e5740ccb32 | |||
9a16bebf8f | |||
4a33d1ac75 | |||
9009962054 | |||
97723db794 | |||
4d47c0d2fc | |||
5d7a761d6b | |||
a3ae50b50f | |||
6dd3687be1 | |||
3a99af11d7 | |||
e5b763b075 | |||
c8a6e2c6cc | |||
9e36d6747b | |||
831d8e1a91 | |||
99bcaf719c | |||
6474f25934 | |||
b45560cfc4 | |||
d14b4df347 | |||
c621de8d2b | |||
b764700527 | |||
a131e4c6b0 | |||
187fa60492 | |||
e872fc2850 | |||
d57ca44902 | |||
662d223626 | |||
d891d044e7 | |||
84595a62f2 | |||
29493d365e | |||
c591c5f8b4 | |||
2ac75fc932 | |||
542711f862 | |||
7c68e09d77 | |||
a9a6f6968e | |||
8a076c8e8d | |||
40f395ef19 | |||
0f65d60602 | |||
d2b514a3c1 | |||
a1c54bc7f7 | |||
bc60e8c154 | |||
1722b00802 | |||
95f1f60490 | |||
5c70ffef0b | |||
005b2518c9 | |||
95454e9024 | |||
95bd6193cc | |||
6ea078f196 | |||
e52a2f1a02 | |||
6cb1821bf1 | |||
1a78eae8f6 | |||
2c276f64d7 | |||
ff3bd55892 | |||
9489aed825 | |||
2075d740c9 | |||
00d7e249e2 | |||
389f7582e5 | |||
7b4b7bb42e | |||
8e8b3b82e1 | |||
b03d5178fc | |||
befe79d103 | |||
182a326e1c | |||
133b84d536 | |||
6816128f80 | |||
e442d6d390 | |||
ed735ac2cb | |||
5f6424778e | |||
132cf14623 | |||
8d333f2a4f | |||
d47de35893 | |||
4fb0070b7e | |||
fa03dfc291 | |||
923b57db45 | |||
ef30f69c9d | |||
7849ee9e71 | |||
0608489ec4 | |||
01597842fe | |||
96b73af196 | |||
78054e977b | |||
a64cc24169 | |||
6b24b1f45c | |||
e85d851cd9 | |||
91fe4d37d6 | |||
1762334a9f | |||
d7612a3b67 | |||
1004d5d5b5 | |||
0535ab3414 | |||
cec8e7159a | |||
24e63456c6 | |||
6fb57d3478 | |||
fa6ebda53f | |||
383331bb42 | |||
1a75484520 | |||
a11a6739c2 | |||
94e0ba9ec7 | |||
1770ad7280 | |||
d41c7ac33a | |||
396b6153af | |||
831ebec475 | |||
b0afc82d7d | |||
8659d3fb4a | |||
3c4ccd41fa | |||
475c66d2cc | |||
f8790a536a | |||
b549e862b0 | |||
203eda1d47 | |||
47b06d3255 | |||
e965a668a3 | |||
65b3dfa4a6 | |||
875a78a124 | |||
46e5c6a8ee | |||
2bd367a4dc | |||
49677da371 | |||
3850b22f7f | |||
db8fc561c3 | |||
9b79638f79 | |||
7596650a2d | |||
308050923b | |||
9d6c7d6a69 | |||
a20044bccc | |||
268e6abd65 | |||
87ca69bd14 | |||
63d29a508e | |||
e9a8630a3f | |||
c0ad0f4d31 | |||
a382ea5b21 | |||
26723de502 | |||
58617584d4 | |||
4ef408b591 | |||
592c8b8b0a | |||
b254961b22 | |||
d32f0e0173 | |||
701f8224dc | |||
7b031aa4bf | |||
d01d72f8e7 | |||
0d205015ae | |||
7aa0390f32 | |||
68e6cbdd40 | |||
fa062aa298 | |||
205f492e2e | |||
899a99a106 | |||
766edcb1a6 | |||
b37ca4498d | |||
9ad63e7f3a | |||
81336cc3e9 | |||
e9d44813d2 | |||
d4fbfd0ff4 | |||
4c7ff58885 | |||
a083337473 | |||
6bc3224fe7 | |||
7e2a9d1adb | |||
2d6fc0e304 | |||
d019cd7080 | |||
4cb60cc5ba | |||
9722101114 | |||
3f0bffaadf | |||
6e69560969 | |||
8f4ebf1d93 | |||
132443013a | |||
ac87eefa6d | |||
f705b2eaa1 | |||
6ade0e27b7 | |||
7e74261f92 | |||
57298c71c8 | |||
b06a6f46a5 | |||
63d6036e3a | |||
ab316deeaa | |||
f2fa0517b5 | |||
474239c784 | |||
77188a42ac | |||
57b99a1595 | |||
b2b367ef5f | |||
022944e49b | |||
27024253ce | |||
22bc0b949d | |||
ac0759efc8 | |||
94d0635285 | |||
634229a842 | |||
eb5556548d | |||
14faa8e564 | |||
2f12bfdb41 | |||
358bd0296e | |||
aa6cd0d2e5 | |||
83bdcb541c | |||
1d8d067caf | |||
15f5e19d40 | |||
63897b3ecc | |||
ac3f2d1794 | |||
bff3dab505 | |||
04bdc76749 | |||
3b4fcd0369 | |||
fea97461c5 | |||
897cc78397 | |||
0eb7c3eb71 | |||
20c5078e93 | |||
c784e03be5 | |||
803301ea89 | |||
fa4ba97f6d | |||
b130487c2a | |||
8ff802dac1 | |||
69e8641db5 | |||
d5a3c1d3a7 | |||
79360e6501 | |||
547c59e52f | |||
5473a89132 | |||
dca493b6c4 | |||
b6b47ff254 | |||
095737d863 | |||
9609d1e2fd | |||
d36f68fd66 | |||
d252888850 | |||
21af952fec | |||
778bdec4ba | |||
f1c943cd57 | |||
1248743859 | |||
fa468b04ab | |||
06c170b41b | |||
cb6c18efa4 | |||
d44a65c7b7 | |||
d08c9e61e3 | |||
8922ab86d6 | |||
6d843c78cf | |||
e46f48f0a3 | |||
f2d90ee844 | |||
23bfc1b514 | |||
035997bc2e | |||
086bf0343c | |||
97f17dc6d8 | |||
50a5d5967b | |||
78d48e62a9 | |||
2e9afac689 | |||
fa0800a24a | |||
0b3959e1a1 | |||
e98d795d2b | |||
d11d7a5f38 | |||
2ec37026be | |||
94401919b8 | |||
cbf4b2e3bf | |||
d8aec20022 | |||
e462e3ef58 | |||
9e7651e2d5 | |||
78fa1e785d | |||
149a50a26f | |||
18b3f8025e | |||
eb10483faf | |||
dc13d9e9d2 | |||
676a0b2908 | |||
9de43e7757 | |||
f0d9497e1f | |||
d87b7edd5f | |||
e15aa7a9bf | |||
2e96567459 | |||
8e586ca693 | |||
03c3fa42a8 | |||
dbdf9b6398 | |||
fcd296cd81 | |||
95811dfdff | |||
91e6bbe5c3 | |||
8c65e4c62d | |||
2364f539eb | |||
5081360073 | |||
3c0ab2d3f3 | |||
9c0658edca | |||
86b43e55c1 | |||
0b05255f90 | |||
17e01ed240 | |||
af9ba8ae90 | |||
4906642ac3 | |||
b68d428492 | |||
02709e1699 | |||
fe108af32e | |||
8b096b4186 | |||
5d19ff392a | |||
2952480d30 | |||
66d02325d8 | |||
69ff14a54c | |||
71d53e0d4e | |||
2643a62d4a | |||
144a8d6d4b | |||
11d04287c9 | |||
76a7adf83e | |||
8a837981b6 | |||
9ebcff93de | |||
ce8647c51d | |||
43b16d85f4 | |||
ad7a618222 | |||
765a0e394a | |||
1aac4215ff | |||
dfcf8ecf37 | |||
92d7ebded3 | |||
9302ee2cb0 | |||
28592e73a8 | |||
609db2639e | |||
b74cd8ec97 | |||
cd6f798b85 | |||
2338eeb4c0 | |||
b72a69f25c | |||
71b88deb2a | |||
0a290a64cc | |||
94dce3b623 | |||
659b684bf2 | |||
92db15b8d9 | |||
12bf7f9346 | |||
95b5e1decd | |||
4f098c4ff9 | |||
4fc1952539 | |||
5324156cc4 | |||
5f8cd22cdb | |||
993e853a5f | |||
a2f0e566c7 | |||
66c9729097 | |||
a607aadf32 | |||
8d99f2c6c4 | |||
f4cf5dd32c | |||
f99761c813 | |||
34d2631502 | |||
3265c36e14 | |||
3ee2c39be4 | |||
b2f59ea0d7 | |||
260097151d | |||
c21fa98ba5 | |||
eea2fce447 | |||
96b757130d | |||
c51f25f38d | |||
0bb3011f7f | |||
af5595c845 | |||
23b140416a | |||
4cbf43165c | |||
d6f6c1f1d4 | |||
1484c667a0 | |||
1f1afe0c33 | |||
5cf219a22e | |||
26283c8c25 | |||
49482d1441 | |||
c532ffb34e | |||
86ee333c02 | |||
199fc19277 | |||
1d4a2ea710 | |||
5f845513ee | |||
c1204bfb66 | |||
5225f4810f | |||
1e2567e4a3 | |||
8838b5220a | |||
bdf60f16a4 | |||
5d408c0aa4 | |||
ea42b83573 | |||
5ae77ae037 | |||
1c588e3311 | |||
4bbf62855c | |||
188d5043d8 | |||
09e46ead48 | |||
47df8ff7d6 | |||
a4356caefe | |||
f0bcbdca5c | |||
bd74a9ffc6 | |||
5d498d6824 | |||
5d80fb8219 | |||
2bd7db4244 | |||
25507428c2 | |||
df13c904b2 | |||
06bf4ea960 | |||
765a89951d | |||
19f872161e | |||
276c608f26 | |||
2c969b70a5 | |||
e8dc679874 | |||
47e8f23e9f | |||
83e249a1a0 | |||
9e881f28d1 | |||
ac7c017c35 | |||
da548fd03a | |||
9094756997 | |||
30b9545d75 | |||
1db253b243 | |||
50d80e3b81 | |||
e5736fcf92 | |||
1e0dea0738 | |||
cfdc731634 | |||
528b93ab14 | |||
39c291e2a6 | |||
5c60989043 | |||
f2c581dec1 | |||
f9753b649a | |||
11411bae2b | |||
42a641f0a5 | |||
b19cd63558 | |||
5bb6a54f61 | |||
82da6ea0a0 | |||
7b65595fe2 | |||
357b91a9b2 | |||
322dcd72c1 | |||
68cbe543b0 | |||
f08e2c4f64 | |||
e5ffd618f7 | |||
f233188963 | |||
c3bc24b165 | |||
caff2c9006 | |||
da503d2b3e | |||
adbb0c3338 | |||
cf62ecc199 | |||
4b08c20b0e | |||
c8bf853ba4 | |||
9ae9ec1975 | |||
8e074b2e28 | |||
757e372726 | |||
cf2b20dd43 | |||
fd6b8449bf | |||
035231a928 | |||
1454cbac14 | |||
3956d8a0c2 | |||
18ad53aa24 | |||
c09067e477 | |||
51a4fe7e2d | |||
e7f2d1e2bc | |||
56401d5f7d | |||
8cbd2c9ec6 | |||
77bfabca3b | |||
27f84c5caa | |||
a32d780347 | |||
d38b89edc7 | |||
0322f1b54a | |||
f6a39d6eab | |||
4fa93f8676 | |||
639f11d0b9 | |||
6e32d1e010 | |||
85db14f213 | |||
ac5f849e91 | |||
4783d5621e | |||
85b9c2b0c5 | |||
447634d263 | |||
f436a71479 | |||
e848645e88 | |||
78b55e1e37 | |||
3b0e0c3402 | |||
a19e25228f | |||
d8ed531e4c | |||
73851ab86f | |||
0cabfb6cfa | |||
1fafffd8af | |||
96f22f8cd4 | |||
558f7970b1 | |||
d2fbcc5259 | |||
0e5a1877a8 | |||
8e436b1d30 |
3
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: castano
|
33
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
vs2017:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: microsoft/setup-msbuild@v1.0.0
|
||||
- name: Build Debug/x64
|
||||
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Debug /property:Platform=x64
|
||||
- name: Build Debug/Win32
|
||||
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Debug /property:Platform=Win32
|
||||
- name: Build Release/x64
|
||||
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Release /property:Platform=x64
|
||||
- name: Build Release/Win32
|
||||
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Release /property:Platform=Win32
|
||||
|
||||
unix:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu, macos]
|
||||
name: ${{matrix.os}}
|
||||
runs-on: ${{matrix.os}}-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: make
|
||||
run: |
|
||||
./configure --debug
|
||||
make
|
||||
./configure --release
|
||||
make
|
17
.gitignore
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
**/bin/
|
||||
**/obj/
|
||||
**/Debug/
|
||||
**/Release/
|
||||
**/Debug.x64/
|
||||
**/Release.x64/
|
||||
**/Debug.Win32/
|
||||
**/Release.Win32/
|
||||
**/Debug-CUDA/
|
||||
**/Release-CUDA/
|
||||
*.vcxproj.user
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.suo
|
||||
build
|
||||
.vs
|
||||
project/nvtt.sublime-workspace
|
@ -1,34 +1,28 @@
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
|
||||
PROJECT(NV)
|
||||
ENABLE_TESTING()
|
||||
|
||||
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
|
||||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
|
||||
|
||||
IF(WIN32)
|
||||
# gnuwin32 paths:
|
||||
SET(GNUWIN32_PATH "${NV_SOURCE_DIR}/extern/gnuwin32")
|
||||
SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "${GNUWIN32_PATH}/include")
|
||||
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${GNUWIN32_PATH}/lib")
|
||||
|
||||
# Set GLUT path:
|
||||
SET(GLUT_ROOT_DIR "${NV_SOURCE_DIR}/extern/glut")
|
||||
|
||||
# Set FreeImage path:
|
||||
SET(FREEIMAGE_ROOT_DIR "${NV_SOURCE_DIR}/extern/FreeImage")
|
||||
|
||||
ENDIF(WIN32)
|
||||
# Compiler check (needs -std:c++11 flag)
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
|
||||
if(COMPILER_SUPPORTS_CXX11)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
else()
|
||||
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
|
||||
endif()
|
||||
|
||||
INCLUDE(${NV_CMAKE_DIR}/OptimalOptions.cmake)
|
||||
MESSAGE(STATUS "Setting optimal options")
|
||||
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
|
||||
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
|
||||
|
||||
IF(NVTT_SHARED)
|
||||
SET(NVCORE_SHARED TRUE)
|
||||
SET(NVMATH_SHARED TRUE)
|
||||
SET(NVIMAGE_SHARED TRUE)
|
||||
ENDIF(NVTT_SHARED)
|
||||
IF(CMAKE_BUILD_TYPE MATCHES "debug")
|
||||
SET(CMAKE_DEBUG_POSTFIX "_d" CACHE STRING "Postfix for debug build libraries.")
|
||||
ADD_DEFINITIONS(-D_DEBUG=1)
|
||||
ENDIF()
|
||||
|
||||
|
||||
ADD_SUBDIRECTORY(extern)
|
||||
|
||||
@ -36,9 +30,8 @@ ADD_SUBDIRECTORY(src)
|
||||
|
||||
# These files should only be installed when creating packages.
|
||||
INSTALL(FILES
|
||||
NVIDIA_Texture_Tools_LICENSE.txt
|
||||
NVIDIA_Texture_Tools_README.txt
|
||||
ChangeLog
|
||||
LICENSE
|
||||
README.md
|
||||
DESTINATION share/doc/nvtt)
|
||||
|
||||
# Add packaging support
|
||||
@ -51,20 +44,20 @@ ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
SET(CPACK_PACKAGE_NAME "nvidia-texture-tools")
|
||||
SET(CPACK_PACKAGE_VERSION_MAJOR "2")
|
||||
SET(CPACK_PACKAGE_VERSION_MINOR "1")
|
||||
SET(CPACK_PACKAGE_VERSION_PATCH "0")
|
||||
SET(CPACK_PACKAGE_VERSION "2.1.0")
|
||||
SET(CPACK_PACKAGE_CONTACT "Ignacio Casta<74>o <icastano@nvidia.com>")
|
||||
SET(CPACK_PACKAGE_VENDOR "NVIDIA Corporation")
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GPU-accelerated Texture Tools with support for DirectX 10 texture formats")
|
||||
SET(CPACK_PACKAGE_VERSION_PATCH "2")
|
||||
SET(CPACK_PACKAGE_VERSION "2.1.2")
|
||||
SET(CPACK_PACKAGE_CONTACT "Ignacio Casta<74>o <castano@gmail.com>")
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Texture processing tools with support for Direct3D 10 and 11 formats.")
|
||||
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${NV_SOURCE_DIR}/NVIDIA_Texture_Tools_README.txt")
|
||||
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/NVIDIA_Texture_Tools_LICENSE.txt")
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${NV_SOURCE_DIR}/README.md")
|
||||
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/LICENSE")
|
||||
|
||||
# NSIS options:
|
||||
IF(WIN32)
|
||||
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
|
||||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
|
||||
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}\\\\project\\\\vc8\\\\nvcompress\\\\nvidia.ico")
|
||||
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}\\\\project\\\\vc2017\\\\nvcompress\\\\nvidia.ico")
|
||||
ENDIF(WIN32)
|
||||
|
||||
INCLUDE(CPack)
|
||||
|
||||
|
@ -1,4 +1,12 @@
|
||||
NVIDIA Texture Tools version 2.1.2
|
||||
* Use ICBC as the main BC1 compressor.
|
||||
* Various fixes.
|
||||
|
||||
NVIDIA Texture Tools version 2.1.1
|
||||
* Various fixes.
|
||||
|
||||
NVIDIA Texture Tools version 2.1.0
|
||||
* Too many changes to list here.
|
||||
* CTX1 CUDA compressor.
|
||||
* DXT1n CUDA compressor.
|
||||
* Support alpha premultiplication by Charles Nicholson. See issue 30.
|
||||
|
@ -1,6 +1,7 @@
|
||||
NVIDIA Texture Tools 2.0 is licensed under the MIT license.
|
||||
NVIDIA Texture Tools is licensed under the MIT license.
|
||||
|
||||
Copyright (c) 2007 NVIDIA Corporation
|
||||
Copyright (c) 2009-2020 Ignacio Castaño
|
||||
Copyright (c) 2007-2009 NVIDIA Corporation
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
@ -1,187 +0,0 @@
|
||||
--------------------------------------------------------------------------------
|
||||
--------------------------------------------------------------------------------
|
||||
NVIDIA Texture Tools
|
||||
README.txt
|
||||
Version 2.1
|
||||
--------------------------------------------------------------------------------
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
TABLE OF CONTENTS
|
||||
--------------------------------------------------------------------------------
|
||||
I. Instructions
|
||||
II. Contents
|
||||
III. Compilation Instructions
|
||||
IV. Using NVIDIA Texture Tools in your own applications
|
||||
V. Known Issues
|
||||
VI. Frequently Asked Questions
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
I. Introduction
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
The NVIDIA Texture Tools is a collection of image processing and texture
|
||||
manipulation tools, designed to be integrated in game tools and asset
|
||||
conditioning pipelines.
|
||||
|
||||
The primary features of the library are mipmap and normal map generation, format
|
||||
conversion and DXT compression.
|
||||
|
||||
DXT compression is based on Simon Brown's squish library. The library also
|
||||
contains an alternative GPU-accelerated compressor that uses CUDA and on some
|
||||
GPUs is one order of magnitude faster.
|
||||
|
||||
You can obtain CUDA from our developer site at:
|
||||
|
||||
http://developer.nvidia.com/object/cuda.html
|
||||
|
||||
The source code of the Texture Tools is being released under the terms of
|
||||
the MIT license.
|
||||
|
||||
The latest installer is available at the official website:
|
||||
|
||||
http://developer.nvidia.com/object/texture_tools.html
|
||||
|
||||
Documentation and additional information can be found at the development site:
|
||||
|
||||
http://code.google.com/p/nvidia-texture-tools/
|
||||
|
||||
|
||||
II. Contents
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
This release contains only the source code of the texture compression library
|
||||
and several command line applications that serve as examples of how to use the
|
||||
library.
|
||||
|
||||
Documentation for the texture compression library is available at:
|
||||
|
||||
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation
|
||||
|
||||
A brief description of the command line tools can be found at:
|
||||
|
||||
http://code.google.com/p/nvidia-texture-tools/wiki/CommandLineTools
|
||||
|
||||
|
||||
III. Compilation Instructions
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
The compression library and the example can be compiled with Visual Studio 8 on
|
||||
Windows using the following solution file:
|
||||
|
||||
project\vc8\nvtt.sln
|
||||
|
||||
On most other platforms you can also use cmake. For more information about
|
||||
cmake, visit:
|
||||
|
||||
http://www.cmake.org/
|
||||
|
||||
On unix systems you can use the standard build procedure (assuming cmake is
|
||||
installed on your system):
|
||||
|
||||
$ ./configure
|
||||
$ make
|
||||
$ sudo make install
|
||||
|
||||
|
||||
IV. Using NVIDIA Texture Tools
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
To use the NVIDIA Texture Tools in your own applications you just have to
|
||||
include the following header file:
|
||||
|
||||
src/nvimage/nvtt/nvtt.h
|
||||
|
||||
And include the nvtt library in your projects.
|
||||
|
||||
The following file contains a simple example that shows how to use the library:
|
||||
|
||||
src/nvimage/nvtt/compress.cpp
|
||||
|
||||
Detailed documentation of the API can be found at:
|
||||
|
||||
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation
|
||||
|
||||
The usage of the commandline compression tool is the following:
|
||||
|
||||
$ nvcompress [options] infile [outfile]
|
||||
|
||||
where 'infile' is and TGA, PNG, PSD, DDS or JPG file, 'outfile' is a DDS file
|
||||
and 'options' is one or more of the following:
|
||||
|
||||
Input options:
|
||||
-color The input image is a color map (default).
|
||||
-alpha The input image has an alpha channel used for transparency.
|
||||
-normal The input image is a normal map.
|
||||
-tonormal Convert input to normal map.
|
||||
-clamp Clamp wrapping mode (default).
|
||||
-repeat Repeat wrapping mode.
|
||||
-nomips Disable mipmap generation.
|
||||
-premula Premultiply alpha into color channel.
|
||||
-mipfilter Mipmap filter. One of the following: box, triangle, kaiser.
|
||||
|
||||
Compression options:
|
||||
-fast Fast compression.
|
||||
-nocuda Do not use cuda compressor.
|
||||
-rgb RGBA format
|
||||
-bc1 BC1 format (DXT1)
|
||||
-bc1n BC1 normal map format (DXT1nm)
|
||||
-bc1a BC1 format with binary alpha (DXT1a)
|
||||
-bc2 BC2 format (DXT3)
|
||||
-bc3 BC3 format (DXT5)
|
||||
-bc3n BC3 normal map format (DXT5nm)
|
||||
-bc4 BC4 format (ATI1)
|
||||
-bc5 BC5 format (3Dc/ATI2)
|
||||
|
||||
Output options:
|
||||
-silent Do not output progress messages
|
||||
-dds10 Use DirectX 10 DDS format
|
||||
|
||||
In order to run the compiled example on a PC that doesn't have Microsoft Visual
|
||||
Studio 2003 installed, you will have to install the Microsoft Visual Studio 2003
|
||||
redistributable package that you can download at:
|
||||
|
||||
http://go.microsoft.com/fwlink/?linkid=65127&clcid=0x409
|
||||
|
||||
|
||||
V. Known Issues
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
None so far. Please file suggestions and bug reports at:
|
||||
|
||||
http://code.google.com/p/nvidia-texture-tools/issues/list
|
||||
|
||||
or contact us directly:
|
||||
|
||||
TextureTools@nvidia.com
|
||||
|
||||
|
||||
|
||||
VI. Frequently Asked Questions
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
=== Where can I ask questions? How can I get support? ===
|
||||
You can ask questions about the usage of the Texture Tools at the [http://developer.nvidia.com/forums/index.php?showforum=9 NVIDIA developer forums]. You can report bugs and request new features in our [http://code.google.com/p/nvidia-texture-tools/issues/list issue database]. If you are a developer and have questions about the API or the source code, feel free to drop by the [http://groups.google.com/group/nvidia-texture-tools developer's mailing list]. If you would like to contact us privately, please send an email to [mailto:TextureTools@nvidia.com TextureTools@nvidia.com].
|
||||
|
||||
=== Why is feature XYZ not supported? ===
|
||||
In order to keep the code small and reduce maintenance costs we have limited the features available in our new texture tools. For this reason, we have also open sourced the code, so that people can modify it and add their own custom features.
|
||||
|
||||
=== What platforms do the NVIDIA Texture Tools support? ===
|
||||
The tools are compiled and tested regularly on Linux, OSX, and Windows. Some platforms are tested more frequently than others and there may be bugs on some uncommon configurations.
|
||||
|
||||
=== Is CUDA required? ===
|
||||
No. The Visual Studio solution file contains a configuration that allows you to compile the texture tools without CUDA support. The cmake scripts automatically detect the CUDA installation and use it only when available.
|
||||
|
||||
Even if the texture tools are compiled with CUDA support it's possible to use them on systems that do not support CUDA or that do not have a valid CUDA driver installed.
|
||||
|
||||
=== Where can I get CUDA? ===
|
||||
At [http://developer.nvidia.com/object/cuda.html]
|
||||
|
||||
=== Can I use the NVIDIA Texture Tools in my commercial application? ===
|
||||
Yes, the NVIDIA Texture Tools are licensed under the MIT license.
|
||||
|
||||
=== Can I use the NVIDIA Texture Tools in my GPL application? ===
|
||||
Yes, the MIT license is compatible with the GPL and LGPL licenses.
|
||||
|
||||
=== Can I use the NVIDIA Texture Tools in the US? Do I have to obtain a license of the S3TC patent (US patent 5,956,431)? ===
|
||||
NVIDIA has a license of the S3TC patent that covers all our products, including our Texture Tools. You don't have to obtain a license of the S3TC patent to use any of NVIDIA's products, but certain uses of NVIDIA Texture Tools source code cannot be considered NVIDIA products anymore. Keep in mind that the NVIDIA Texture Tools are licensed under the MIT license and thus are provided without warranty of any kind.
|
43
README.md
Normal file
@ -0,0 +1,43 @@
|
||||
# NVIDIA Texture Tools [](https://github.com/castano/nvidia-texture-tools/actions)  [](https://github.com/castano/nvidia-texture-tools)
|
||||
|
||||
The NVIDIA Texture Tools is a collection of image processing and texture
|
||||
manipulation tools, designed to be integrated in game tools and asset
|
||||
processing pipelines.
|
||||
|
||||
The primary features of the library are mipmap and normal map generation, format
|
||||
conversion, and DXT compression.
|
||||
|
||||
|
||||
### How to build (Windows)
|
||||
|
||||
Use the provided Visual Studio 2017 solution `project/vc2017/thekla.sln`.
|
||||
|
||||
|
||||
### How to build (Linux/OSX)
|
||||
|
||||
Use [cmake](http://www.cmake.org/) and the provided configure script:
|
||||
|
||||
```bash
|
||||
$ ./configure
|
||||
$ make
|
||||
$ sudo make install
|
||||
```
|
||||
|
||||
|
||||
### Using NVIDIA Texture Tools
|
||||
|
||||
To use the NVIDIA Texture Tools in your own applications you just have to
|
||||
include the following header file:
|
||||
|
||||
[src/nvtt/nvtt.h](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/nvtt.h)
|
||||
|
||||
And include the nvtt library in your projects.
|
||||
|
||||
The following file contains a simple example that shows how to use the library:
|
||||
|
||||
[src/nvtt/tools/compress.cpp](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/tools/compress.cpp)
|
||||
|
||||
Detailed documentation of the API can be found at:
|
||||
|
||||
https://github.com/castano/nvidia-texture-tools/wiki/ApiDocumentation
|
||||
|
7
buildpkg
@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
tar zcvf nvidia-texture-tools-`cat VERSION`.tar.gz \
|
||||
--exclude '.*' --exclude debian --exclude '*~' --exclude buildpkg \
|
||||
--exclude 'build-*' --exclude data --exclude tags --exclude Makefile \
|
||||
--exclude qtcreator-build --exclude 'nvidia-texture-tools-*.tar.gz' \
|
||||
--exclude '*.user' --transform 's,^,nvidia-texture-tools/,' *
|
@ -1,68 +0,0 @@
|
||||
|
||||
# Assume i586 by default.
|
||||
SET(NV_SYSTEM_PROCESSOR "i586")
|
||||
|
||||
IF(UNIX)
|
||||
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
|
||||
IF(CMAKE_UNAME)
|
||||
EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
|
||||
|
||||
IF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
|
||||
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
|
||||
ENDIF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
|
||||
|
||||
# processor may have double quote in the name, and that needs to be removed
|
||||
STRING(REGEX REPLACE "\"" "" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
|
||||
STRING(REGEX REPLACE "/" "_" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
|
||||
ENDIF(CMAKE_UNAME)
|
||||
|
||||
#~ # Get extended processor information from /proc/cpuinfo
|
||||
#~ IF(EXISTS "/proc/cpuinfo")
|
||||
|
||||
#~ FILE(READ /proc/cpuinfo PROC_CPUINFO)
|
||||
|
||||
#~ SET(VENDOR_ID_RX "vendor_id[ \t]*:[ \t]*([a-zA-Z]+)\n")
|
||||
#~ STRING(REGEX MATCH "${VENDOR_ID_RX}" VENDOR_ID "${PROC_CPUINFO}")
|
||||
#~ STRING(REGEX REPLACE "${VENDOR_ID_RX}" "\\1" VENDOR_ID "${VENDOR_ID}")
|
||||
|
||||
#~ SET(CPU_FAMILY_RX "cpu family[ \t]*:[ \t]*([0-9]+)")
|
||||
#~ STRING(REGEX MATCH "${CPU_FAMILY_RX}" CPU_FAMILY "${PROC_CPUINFO}")
|
||||
#~ STRING(REGEX REPLACE "${CPU_FAMILY_RX}" "\\1" CPU_FAMILY "${CPU_FAMILY}")
|
||||
|
||||
#~ SET(MODEL_RX "model[ \t]*:[ \t]*([0-9]+)")
|
||||
#~ STRING(REGEX MATCH "${MODEL_RX}" MODEL "${PROC_CPUINFO}")
|
||||
#~ STRING(REGEX REPLACE "${MODEL_RX}" "\\1" MODEL "${MODEL}")
|
||||
|
||||
#~ SET(FLAGS_RX "flags[ \t]*:[ \t]*([a-zA-Z0-9 _]+)\n")
|
||||
#~ STRING(REGEX MATCH "${FLAGS_RX}" FLAGS "${PROC_CPUINFO}")
|
||||
#~ STRING(REGEX REPLACE "${FLAGS_RX}" "\\1" FLAGS "${FLAGS}")
|
||||
|
||||
#~ # Debug output.
|
||||
#~ IF(LINUX_CPUINFO)
|
||||
#~ MESSAGE(STATUS "LinuxCPUInfo.cmake:")
|
||||
#~ MESSAGE(STATUS "VENDOR_ID : ${VENDOR_ID}")
|
||||
#~ MESSAGE(STATUS "CPU_FAMILY : ${CPU_FAMILY}")
|
||||
#~ MESSAGE(STATUS "MODEL : ${MODEL}")
|
||||
#~ MESSAGE(STATUS "FLAGS : ${FLAGS}")
|
||||
#~ ENDIF(LINUX_CPUINFO)
|
||||
|
||||
#~ ENDIF(EXISTS "/proc/cpuinfo")
|
||||
|
||||
#~ # Information on how to decode CPU_FAMILY and MODEL:
|
||||
#~ # http://balusc.xs4all.nl/srv/har-cpu-int-pm.php
|
||||
|
||||
ELSE(UNIX)
|
||||
|
||||
IF(WIN32)
|
||||
# It's not OK to trust $ENV{PROCESSOR_ARCHITECTURE}: its value depends on the type of executable being run,
|
||||
# so a 32-bit cmake (the default binary distribution) will always say "x86" regardless of the actual target.
|
||||
IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
SET (NV_SYSTEM_PROCESSOR "AMD64")
|
||||
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
SET (NV_SYSTEM_PROCESSOR "x86")
|
||||
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
ENDIF(WIN32)
|
||||
|
||||
ENDIF(UNIX)
|
||||
|
||||
|
1123
cmake/FindCUDA.cmake
@ -1,172 +0,0 @@
|
||||
#
|
||||
# Try to find NVIDIA's Cg compiler, runtime libraries, and include path.
|
||||
# Once done this will define
|
||||
#
|
||||
# CG_FOUND =system has NVIDIA Cg and it can be used.
|
||||
# CG_INCLUDE_PATH = directory where cg.h resides
|
||||
# CG_LIBRARY = full path to libCg.so (Cg.DLL on win32)
|
||||
# CG_GL_LIBRARY = full path to libCgGL.so (CgGL.dll on win32)
|
||||
# CG_COMPILER = full path to cgc (cgc.exe on win32)
|
||||
#
|
||||
|
||||
# On OSX default to using the framework version of Cg.
|
||||
IF (APPLE)
|
||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeFindFrameworks.cmake)
|
||||
SET(CG_FRAMEWORK_INCLUDES)
|
||||
CMAKE_FIND_FRAMEWORKS(Cg)
|
||||
IF (Cg_FRAMEWORKS)
|
||||
FOREACH(dir ${Cg_FRAMEWORKS})
|
||||
SET(CG_FRAMEWORK_INCLUDES ${CG_FRAMEWORK_INCLUDES}
|
||||
${dir}/Headers ${dir}/PrivateHeaders)
|
||||
ENDFOREACH(dir)
|
||||
|
||||
# Find the include dir
|
||||
FIND_PATH(CG_INCLUDE_PATH cg.h
|
||||
${CG_FRAMEWORK_INCLUDES}
|
||||
)
|
||||
|
||||
# Since we are using Cg framework, we must link to it.
|
||||
# Note, we use weak linking, so that it works even when Cg is not available.
|
||||
SET(CG_LIBRARY "-weak_framework Cg" CACHE STRING "Cg library")
|
||||
SET(CG_GL_LIBRARY "-weak_framework Cg" CACHE STRING "Cg GL library")
|
||||
ENDIF (Cg_FRAMEWORKS)
|
||||
FIND_PROGRAM(CG_COMPILER cgc
|
||||
/usr/bin
|
||||
/usr/local/bin
|
||||
DOC "The Cg compiler"
|
||||
)
|
||||
ELSE (APPLE)
|
||||
IF (WIN32)
|
||||
|
||||
# When compiling 64-bit programs, the binaries and libs are in bin.x64 and lib.x64 directories,
|
||||
|
||||
# This will have only effect for 64bit versions of cmake, when running the default 32bit version
|
||||
# both ProgramFiles and ProgramFiles(x86) point to the same place in Win64
|
||||
SET(PFx86_VARNAME "ProgramFiles(x86)")
|
||||
SET(PFx86 $ENV{${PFx86_VARNAME}})
|
||||
|
||||
# Let's play safe in case we are cross compiling to 64 bit: for cgc it doesn't really matter
|
||||
FIND_PROGRAM( CG_COMPILER cgc
|
||||
$ENV{CG_BIN64_PATH}
|
||||
$ENV{CG_BIN_PATH}
|
||||
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/bin
|
||||
$ENV{PFx86}/NVIDIA\ Corporation/Cg/bin
|
||||
$ENV{PROGRAMFILES}/Cg
|
||||
${PROJECT_SOURCE_DIR}/../Cg
|
||||
DOC "The Cg Compiler"
|
||||
)
|
||||
|
||||
IF (CG_COMPILER)
|
||||
GET_FILENAME_COMPONENT(CG_COMPILER_DIR ${CG_COMPILER} PATH)
|
||||
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR ${CG_COMPILER_DIR} PATH)
|
||||
ELSE (CG_COMPILER)
|
||||
SET (CG_COMPILER_DIR .)
|
||||
SET (CG_COMPILER_SUPER_DIR ..)
|
||||
ENDIF (CG_COMPILER)
|
||||
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
|
||||
$ENV{CG_INC_PATH}
|
||||
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/include
|
||||
$ENV{PROGRAMFILES}/Cg
|
||||
${PROJECT_SOURCE_DIR}/../Cg
|
||||
${CG_COMPILER_SUPER_DIR}/include
|
||||
${CG_COMPILER_DIR}
|
||||
DOC "The directory where Cg/cg.h resides"
|
||||
)
|
||||
|
||||
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
FIND_LIBRARY( CG_LIBRARY
|
||||
NAMES Cg
|
||||
PATHS
|
||||
$ENV{CG_LIB64_PATH}
|
||||
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib.x64
|
||||
$ENV{PFx86}/NVIDIA\ Corporation/Cg/lib.x64
|
||||
$ENV{PROGRAMFILES}/Cg
|
||||
$ENV{PFx86}/Cg
|
||||
${PROJECT_SOURCE_DIR}/../Cg
|
||||
${CG_COMPILER_SUPER_DIR}/lib.x64
|
||||
${CG_COMPILER_DIR}
|
||||
DOC "The Cg runtime library (64-bit)"
|
||||
)
|
||||
FIND_LIBRARY( CG_GL_LIBRARY
|
||||
NAMES CgGL
|
||||
PATHS
|
||||
$ENV{CG_LIB64_PATH}
|
||||
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib.x64
|
||||
$ENV{PFx86}/NVIDIA\ Corporation/Cg/lib.x64
|
||||
$ENV{PROGRAMFILES}/Cg
|
||||
$ENV{PFx86}/Cg
|
||||
${PROJECT_SOURCE_DIR}/../Cg
|
||||
${CG_COMPILER_SUPER_DIR}/lib.x64
|
||||
${CG_COMPILER_DIR}
|
||||
DOC "The Cg GL runtime library (64-bit)"
|
||||
)
|
||||
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
FIND_LIBRARY( CG_LIBRARY
|
||||
NAMES Cg
|
||||
PATHS
|
||||
$ENV{CG_LIB_PATH}
|
||||
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib
|
||||
$ENV{PROGRAMFILES}/Cg
|
||||
${PROJECT_SOURCE_DIR}/../Cg
|
||||
${CG_COMPILER_SUPER_DIR}/lib
|
||||
${CG_COMPILER_DIR}
|
||||
DOC "The Cg runtime library"
|
||||
)
|
||||
FIND_LIBRARY( CG_GL_LIBRARY
|
||||
NAMES CgGL
|
||||
PATHS
|
||||
$ENV{CG_LIB_PATH}
|
||||
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib
|
||||
$ENV{PROGRAMFILES}/Cg
|
||||
${PROJECT_SOURCE_DIR}/../Cg
|
||||
${CG_COMPILER_SUPER_DIR}/lib
|
||||
${CG_COMPILER_DIR}
|
||||
DOC "The Cg GL runtime library"
|
||||
)
|
||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
|
||||
ELSE (WIN32)
|
||||
FIND_PROGRAM( CG_COMPILER cgc
|
||||
/usr/bin
|
||||
/usr/local/bin
|
||||
DOC "The Cg Compiler"
|
||||
)
|
||||
GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH)
|
||||
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR "${CG_COMPILER_DIR}" PATH)
|
||||
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
${CG_COMPILER_SUPER_DIR}/include
|
||||
DOC "The directory where Cg/cg.h resides"
|
||||
)
|
||||
FIND_LIBRARY( CG_LIBRARY Cg
|
||||
PATHS
|
||||
/usr/lib64
|
||||
/usr/lib
|
||||
/usr/local/lib64
|
||||
/usr/local/lib
|
||||
${CG_COMPILER_SUPER_DIR}/lib64
|
||||
${CG_COMPILER_SUPER_DIR}/lib
|
||||
DOC "The Cg runtime library"
|
||||
)
|
||||
SET(CG_LIBRARY ${CG_LIBRARY} -lpthread)
|
||||
FIND_LIBRARY( CG_GL_LIBRARY CgGL
|
||||
PATHS
|
||||
/usr/lib64
|
||||
/usr/lib
|
||||
/usr/local/lib64
|
||||
/usr/local/lib
|
||||
${CG_COMPILER_SUPER_DIR}/lib64
|
||||
${CG_COMPILER_SUPER_DIR}/lib
|
||||
DOC "The Cg runtime library"
|
||||
)
|
||||
ENDIF (WIN32)
|
||||
ENDIF (APPLE)
|
||||
|
||||
IF (CG_INCLUDE_PATH)
|
||||
SET( CG_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
||||
ELSE (CG_INCLUDE_PATH)
|
||||
SET( CG_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
||||
ENDIF (CG_INCLUDE_PATH)
|
||||
|
||||
MARK_AS_ADVANCED( CG_FOUND )
|
@ -1,38 +0,0 @@
|
||||
|
||||
IF (WIN32)
|
||||
|
||||
FIND_PATH(DX9_INCLUDE_PATH d3d9.h
|
||||
PATHS
|
||||
"$ENV{DXSDK_DIR}/Include"
|
||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
|
||||
DOC "The directory where D3D9.h resides")
|
||||
|
||||
FIND_PATH(DX10_INCLUDE_PATH D3D10.h
|
||||
PATHS
|
||||
"$ENV{DXSDK_DIR}/Include"
|
||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
|
||||
DOC "The directory where D3D10.h resides")
|
||||
|
||||
FIND_LIBRARY(D3D10_LIBRARY d3d10.lib
|
||||
PATHS
|
||||
"$ENV{DXSDK_DIR}/Lib/x86"
|
||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
|
||||
DOC "The directory where d3d10.lib resides")
|
||||
|
||||
FIND_LIBRARY(D3DX10_LIBRARY d3dx10.lib
|
||||
PATHS
|
||||
"$ENV{DXSDK_DIR}/Lib/x86"
|
||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
|
||||
DOC "The directory where d3dx10.lib resides")
|
||||
|
||||
SET(DX10_LIBRARIES ${D3D10_LIBRARY} ${D3DX10_LIBRARY})
|
||||
|
||||
ENDIF (WIN32)
|
||||
|
||||
IF (DX10_INCLUDE_PATH)
|
||||
SET( DX10_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
||||
ELSE (DX10_INCLUDE_PATH)
|
||||
SET( DX10_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
||||
ENDIF (DX10_INCLUDE_PATH)
|
||||
|
||||
MARK_AS_ADVANCED( DX10_FOUND )
|
@ -1,53 +0,0 @@
|
||||
#
|
||||
# Try to find the FreeImage library and include path.
|
||||
# Once done this will define
|
||||
#
|
||||
# FREEIMAGE_FOUND
|
||||
# FREEIMAGE_INCLUDE_PATH
|
||||
# FREEIMAGE_LIBRARY
|
||||
#
|
||||
|
||||
IF (WIN32)
|
||||
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
||||
${FREEIMAGE_ROOT_DIR}/include
|
||||
${FREEIMAGE_ROOT_DIR}
|
||||
DOC "The directory where FreeImage.h resides")
|
||||
FIND_LIBRARY( FREEIMAGE_LIBRARY
|
||||
NAMES FreeImage freeimage
|
||||
PATHS
|
||||
${FREEIMAGE_ROOT_DIR}/lib
|
||||
${FREEIMAGE_ROOT_DIR}
|
||||
DOC "The FreeImage library")
|
||||
ELSE (WIN32)
|
||||
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
DOC "The directory where FreeImage.h resides")
|
||||
FIND_LIBRARY( FREEIMAGE_LIBRARY
|
||||
NAMES FreeImage freeimage
|
||||
PATHS
|
||||
/usr/lib64
|
||||
/usr/lib
|
||||
/usr/local/lib64
|
||||
/usr/local/lib
|
||||
/sw/lib
|
||||
/opt/local/lib
|
||||
DOC "The FreeImage library")
|
||||
ENDIF (WIN32)
|
||||
|
||||
SET(FREEIMAGE_LIBRARIES ${FREEIMAGE_LIBRARY})
|
||||
|
||||
IF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||
SET( FREEIMAGE_FOUND TRUE CACHE BOOL "Set to TRUE if FreeImage is found, FALSE otherwise")
|
||||
ELSE (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||
SET( FREEIMAGE_FOUND FALSE CACHE BOOL "Set to TRUE if FreeImage is found, FALSE otherwise")
|
||||
ENDIF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
FREEIMAGE_FOUND
|
||||
FREEIMAGE_LIBRARY
|
||||
FREEIMAGE_LIBRARIES
|
||||
FREEIMAGE_INCLUDE_PATH)
|
||||
|
@ -1,62 +0,0 @@
|
||||
#
|
||||
# Try to find GLEW library and include path.
|
||||
# Once done this will define
|
||||
#
|
||||
# GLEW_FOUND
|
||||
# GLEW_INCLUDE_PATH
|
||||
# GLEW_LIBRARY
|
||||
#
|
||||
|
||||
IF (WIN32)
|
||||
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
|
||||
$ENV{PROGRAMFILES}/GLEW/include
|
||||
${GLEW_ROOT_DIR}/include
|
||||
DOC "The directory where GL/glew.h resides")
|
||||
|
||||
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
FIND_LIBRARY( GLEW_LIBRARY
|
||||
NAMES glew64 glew64s
|
||||
PATHS
|
||||
$ENV{PROGRAMFILES}/GLEW/lib
|
||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
|
||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
|
||||
DOC "The GLEW library (64-bit)"
|
||||
)
|
||||
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
FIND_LIBRARY( GLEW_LIBRARY
|
||||
NAMES glew GLEW glew32 glew32s
|
||||
PATHS
|
||||
$ENV{PROGRAMFILES}/GLEW/lib
|
||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
|
||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
|
||||
DOC "The GLEW library"
|
||||
)
|
||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
ELSE (WIN32)
|
||||
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
${GLEW_ROOT_DIR}/include
|
||||
DOC "The directory where GL/glew.h resides")
|
||||
|
||||
FIND_LIBRARY( GLEW_LIBRARY
|
||||
NAMES GLEW glew
|
||||
PATHS
|
||||
/usr/lib64
|
||||
/usr/lib
|
||||
/usr/local/lib64
|
||||
/usr/local/lib
|
||||
/sw/lib
|
||||
/opt/local/lib
|
||||
${GLEW_ROOT_DIR}/lib
|
||||
DOC "The GLEW library")
|
||||
ENDIF (WIN32)
|
||||
|
||||
SET(GLEW_FOUND "NO")
|
||||
IF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
|
||||
SET(GLEW_LIBRARIES ${GLEW_LIBRARY})
|
||||
SET(GLEW_FOUND "YES")
|
||||
ENDIF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
|
||||
|
@ -1,67 +0,0 @@
|
||||
|
||||
|
||||
|
||||
IF (WIN32)
|
||||
|
||||
# Maya plugins can only be compiled with msvc
|
||||
IF (MSVC)
|
||||
|
||||
FIND_PATH(MAYA_INCLUDE_PATH maya/MTypes.h
|
||||
PATHS
|
||||
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/include"
|
||||
"$ENV{MAYA_LOCATION}/include"
|
||||
DOC "The directory where MTypes.h resides")
|
||||
|
||||
# Find maya version!
|
||||
|
||||
FIND_LIBRARY(MAYA_FOUNDATION_LIBRARY Foundation
|
||||
PATHS
|
||||
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
|
||||
"$ENV{MAYA_LOCATION}/lib"
|
||||
DOC "The directory where Foundation.lib resides")
|
||||
|
||||
FIND_LIBRARY(MAYA_OPENMAYA_LIBRARY OpenMaya
|
||||
PATHS
|
||||
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
|
||||
"$ENV{MAYA_LOCATION}/lib"
|
||||
DOC "The directory where OpenMaya.lib resides")
|
||||
|
||||
FIND_LIBRARY(MAYA_OPENMAYAANIM_LIBRARY OpenMayaAnim
|
||||
PATHS
|
||||
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
|
||||
"$ENV{MAYA_LOCATION}/lib"
|
||||
DOC "The directory where OpenMayaAnim.lib resides")
|
||||
|
||||
SET(MAYA_LIBRARIES
|
||||
${MAYA_FOUNDATION_LIBRARY}
|
||||
${MAYA_OPENMAYA_LIBRARY}
|
||||
${MAYA_OPENMAYAANIM_LIBRARY})
|
||||
|
||||
SET(MAYA_EXTENSION ".mll")
|
||||
|
||||
ENDIF (MSVC)
|
||||
ELSE (WIN32)
|
||||
|
||||
# On linux, check gcc version.
|
||||
|
||||
# OSX and Linux
|
||||
|
||||
FIND_PATH(MAYA_INCLUDE_PATH maya/MTypes.h
|
||||
PATHS
|
||||
/usr/autodesk/maya/include
|
||||
$ENV{MAYA_LOCATION}/include
|
||||
DOC "The directory where MTypes.h resides")
|
||||
|
||||
# TODO
|
||||
|
||||
ENDIF (WIN32)
|
||||
|
||||
|
||||
|
||||
IF (MAYA_INCLUDE_PATH)
|
||||
SET( MAYA_FOUND 1 CACHE STRING "Set to 1 if Maya is found, 0 otherwise")
|
||||
ELSE (MAYA_INCLUDE_PATH)
|
||||
SET( MAYA_FOUND 0 CACHE STRING "Set to 1 if Maya is found, 0 otherwise")
|
||||
ENDIF (MAYA_INCLUDE_PATH)
|
||||
|
||||
MARK_AS_ADVANCED( MAYA_FOUND )
|
@ -1,79 +0,0 @@
|
||||
#
|
||||
# Try to find OpenEXR's libraries, and include path.
|
||||
# Once done this will define:
|
||||
#
|
||||
# OPENEXR_FOUND = OpenEXR found.
|
||||
# OPENEXR_INCLUDE_PATHS = OpenEXR include directories.
|
||||
# OPENEXR_LIBRARIES = libraries that are needed to use OpenEXR.
|
||||
#
|
||||
|
||||
INCLUDE(FindZLIB)
|
||||
|
||||
|
||||
IF(ZLIB_FOUND)
|
||||
|
||||
SET(LIBRARY_PATHS
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/sw/lib
|
||||
/opt/local/lib
|
||||
$ENV{PROGRAM_FILES}/OpenEXR/lib/static)
|
||||
|
||||
FIND_PATH(OPENEXR_INCLUDE_PATH ImfRgbaFile.h
|
||||
PATH_SUFFIXES OpenEXR
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/sw/include
|
||||
/opt/local/include)
|
||||
|
||||
FIND_LIBRARY(OPENEXR_HALF_LIBRARY
|
||||
NAMES Half
|
||||
PATHS ${LIBRARY_PATHS})
|
||||
|
||||
FIND_LIBRARY(OPENEXR_IEX_LIBRARY
|
||||
NAMES Iex
|
||||
PATHS ${LIBRARY_PATHS})
|
||||
|
||||
FIND_LIBRARY(OPENEXR_IMATH_LIBRARY
|
||||
NAMES Imath
|
||||
PATHS ${LIBRARY_PATHS})
|
||||
|
||||
FIND_LIBRARY(OPENEXR_ILMIMF_LIBRARY
|
||||
NAMES IlmImf
|
||||
PATHS ${LIBRARY_PATHS})
|
||||
|
||||
FIND_LIBRARY(OPENEXR_ILMTHREAD_LIBRARY
|
||||
NAMES IlmThread
|
||||
PATHS ${LIBRARY_PATHS})
|
||||
|
||||
ENDIF(ZLIB_FOUND)
|
||||
|
||||
#MESSAGE(STATUS ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${OPENEXR_ILMTHREAD_LIBRARY} ${ZLIB_LIBRARY})
|
||||
|
||||
IF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
|
||||
SET(OPENEXR_FOUND TRUE)
|
||||
SET(OPENEXR_INCLUDE_PATHS ${OPENEXR_INCLUDE_PATH} CACHE STRING "The include paths needed to use OpenEXR")
|
||||
SET(OPENEXR_LIBRARIES ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${ZLIB_LIBRARY} CACHE STRING "The libraries needed to use OpenEXR")
|
||||
|
||||
IF(OPENEXR_ILMTHREAD_LIBRARY)
|
||||
SET(OPENEXR_LIBRARIES ${OPENEXR_LIBRARIES} ${OPENEXR_ILMTHREAD_LIBRARY})
|
||||
ENDIF(OPENEXR_ILMTHREAD_LIBRARY)
|
||||
ENDIF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
|
||||
|
||||
IF(OPENEXR_FOUND)
|
||||
IF(NOT OPENEXR_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found OpenEXR: ${OPENEXR_ILMIMF_LIBRARY}")
|
||||
ENDIF(NOT OPENEXR_FIND_QUIETLY)
|
||||
ELSE(OPENEXR_FOUND)
|
||||
IF(OPENEXR_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find OpenEXR library")
|
||||
ENDIF(OPENEXR_FIND_REQUIRED)
|
||||
ENDIF(OPENEXR_FOUND)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
OPENEXR_INCLUDE_PATHS
|
||||
OPENEXR_LIBRARIES
|
||||
OPENEXR_ILMIMF_LIBRARY
|
||||
OPENEXR_IMATH_LIBRARY
|
||||
OPENEXR_IEX_LIBRARY
|
||||
OPENEXR_HALF_LIBRARY)
|
@ -1,49 +1,11 @@
|
||||
|
||||
INCLUDE(${NV_CMAKE_DIR}/DetermineProcessor.cmake)
|
||||
|
||||
# Set optimal options for gcc:
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
IF(NV_SYSTEM_PROCESSOR STREQUAL "i586")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586")
|
||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "i586")
|
||||
|
||||
IF(NV_SYSTEM_PROCESSOR STREQUAL "i686")
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686")
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse -mtune=i686 -msse3")
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=pentium4")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=prescott")
|
||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "i686")
|
||||
|
||||
IF(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=athlon64")
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=athlon64 -msse3")
|
||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||
|
||||
IF(NV_SYSTEM_PROCESSOR STREQUAL "powerpc")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=powerpc -faltivec -maltivec -mabi=altivec -mpowerpc-gfxopt")
|
||||
|
||||
# ibook G4:
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=7450 -mtune=7450 -faltivec -maltivec -mabi=altivec -mpowerpc-gfxopt")
|
||||
|
||||
# G5
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=G5 -faltivec -maltivec -mabi=altivec -mpowerpc-gfxopt")
|
||||
|
||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "powerpc")
|
||||
|
||||
# IF(DARWIN)
|
||||
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
|
||||
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
|
||||
# ENDIF(DARWIN)
|
||||
|
||||
IF(CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||
ADD_DEFINITIONS(-D_DEBUG)
|
||||
ENDIF(CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||
ENDIF()
|
||||
|
||||
IF(MSVC)
|
||||
# @@ Some of these might only be available in VC8.
|
||||
# Code generation flags.
|
||||
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /arch:SSE2 /fp:fast")
|
||||
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2 /fp:fast")
|
||||
|
@ -1,61 +0,0 @@
|
||||
|
||||
# For more information, please see: http://software.sci.utah.edu
|
||||
#
|
||||
# The MIT License
|
||||
#
|
||||
# Copyright (c) 2007
|
||||
# Scientific Computing and Imaging Institute, University of Utah
|
||||
#
|
||||
# License for the specific language governing rights and limitations under
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# Make2cmake CMake Script
|
||||
# Abe Stephens and James Bigler
|
||||
# (c) 2007 Scientific Computing and Imaging Institute, University of Utah
|
||||
# Note that the REGEX expressions may need to be tweaked for different dependency generators.
|
||||
|
||||
file(READ ${input_file} depend_text)
|
||||
|
||||
if (${depend_text} MATCHES ".+")
|
||||
|
||||
# message("FOUND DEPENDS")
|
||||
|
||||
# Remember, four backslashes is escaped to one backslash in the string.
|
||||
string(REGEX REPLACE "\\\\ " " " depend_text ${depend_text})
|
||||
|
||||
# This works for the nvcc -M generated dependency files.
|
||||
string(REGEX REPLACE "^.* : " "" depend_text ${depend_text})
|
||||
string(REGEX REPLACE "[ \\\\]*\n" ";" depend_text ${depend_text})
|
||||
|
||||
foreach(file ${depend_text})
|
||||
|
||||
string(REGEX REPLACE "^ +" "" file ${file})
|
||||
|
||||
if(NOT IS_DIRECTORY ${file})
|
||||
set(cuda_nvcc_depend "${cuda_nvcc_depend} \"${file}\"\n")
|
||||
endif(NOT IS_DIRECTORY ${file})
|
||||
|
||||
endforeach(file)
|
||||
|
||||
else()
|
||||
# message("FOUND NO DEPENDS")
|
||||
endif()
|
||||
|
||||
|
||||
file(WRITE ${output_file} "# Generated by: make2cmake.cmake\nSET(CUDA_NVCC_DEPEND\n ${cuda_nvcc_depend})\n\n")
|
@ -1,105 +0,0 @@
|
||||
# For more information, please see: http://software.sci.utah.edu
|
||||
#
|
||||
# The MIT License
|
||||
#
|
||||
# Copyright (c) 2007
|
||||
# Scientific Computing and Imaging Institute, University of Utah
|
||||
#
|
||||
# License for the specific language governing rights and limitations under
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# .cubin Parsing CMake Script
|
||||
# Abe Stephens
|
||||
# (c) 2007 Scientific Computing and Imaging Institute, University of Utah
|
||||
|
||||
file(READ ${input_file} file_text)
|
||||
|
||||
if (${file_text} MATCHES ".+")
|
||||
|
||||
# Remember, four backslashes is escaped to one backslash in the string.
|
||||
string(REGEX REPLACE ";" "\\\\;" file_text ${file_text})
|
||||
string(REGEX REPLACE "\ncode" ";code" file_text ${file_text})
|
||||
|
||||
list(LENGTH file_text len)
|
||||
|
||||
foreach(line ${file_text})
|
||||
|
||||
# Only look at "code { }" blocks.
|
||||
if(line MATCHES "^code")
|
||||
|
||||
# Break into individual lines.
|
||||
string(REGEX REPLACE "\n" ";" line ${line})
|
||||
|
||||
foreach(entry ${line})
|
||||
|
||||
# Extract kernel names.
|
||||
if (${entry} MATCHES "[^g]name = ([^ ]+)")
|
||||
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
|
||||
|
||||
# Check to see if the kernel name starts with "_"
|
||||
set(skip FALSE)
|
||||
# if (${entry} MATCHES "^_")
|
||||
# Skip the rest of this block.
|
||||
# message("Skipping ${entry}")
|
||||
# set(skip TRUE)
|
||||
# else (${entry} MATCHES "^_")
|
||||
message("Kernel: ${entry}")
|
||||
# endif (${entry} MATCHES "^_")
|
||||
|
||||
endif(${entry} MATCHES "[^g]name = ([^ ]+)")
|
||||
|
||||
# Skip the rest of the block if necessary
|
||||
if(NOT skip)
|
||||
|
||||
# Registers
|
||||
if (${entry} MATCHES "reg = ([^ ]+)")
|
||||
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
|
||||
message("Registers: ${entry}")
|
||||
endif(${entry} MATCHES "reg = ([^ ]+)")
|
||||
|
||||
# Local memory
|
||||
if (${entry} MATCHES "lmem = ([^ ]+)")
|
||||
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
|
||||
message("Local: ${entry}")
|
||||
endif(${entry} MATCHES "lmem = ([^ ]+)")
|
||||
|
||||
# Shared memory
|
||||
if (${entry} MATCHES "smem = ([^ ]+)")
|
||||
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
|
||||
message("Shared: ${entry}")
|
||||
endif(${entry} MATCHES "smem = ([^ ]+)")
|
||||
|
||||
if (${entry} MATCHES "^}")
|
||||
message("")
|
||||
endif(${entry} MATCHES "^}")
|
||||
|
||||
endif(NOT skip)
|
||||
|
||||
|
||||
endforeach(entry)
|
||||
|
||||
endif(line MATCHES "^code")
|
||||
|
||||
endforeach(line)
|
||||
|
||||
else()
|
||||
# message("FOUND NO DEPENDS")
|
||||
endif()
|
||||
|
||||
|
@ -1,227 +0,0 @@
|
||||
# This file runs the nvcc commands to produce the desired output file along with
|
||||
# the dependency file needed by CMake to compute dependencies. In addition the
|
||||
# file checks the output of each command and if the command fails it deletes the
|
||||
# output files.
|
||||
|
||||
# Input variables
|
||||
#
|
||||
# verbose:BOOL=<> OFF: Be as quiet as possible (default)
|
||||
# ON : Describe each step
|
||||
#
|
||||
# build_configuration:STRING=<> Typically one of Debug, MinSizeRel, Release, or
|
||||
# RelWithDebInfo, but it should match one of the
|
||||
# entries in CUDA_HOST_FLAGS. This is the build
|
||||
# configuration used when compiling the code. If
|
||||
# blank or unspecified Debug is assumed as this is
|
||||
# what CMake does.
|
||||
#
|
||||
# generated_file:STRING=<> File to generate. This argument must be passed in.
|
||||
#
|
||||
# generated_cubin_file:STRING=<> File to generate. This argument must be passed
|
||||
# in if build_cubin is true.
|
||||
|
||||
if(NOT generated_file)
|
||||
message(FATAL_ERROR "You must specify generated_file on the command line")
|
||||
endif()
|
||||
|
||||
# Set these up as variables to make reading the generated file easier
|
||||
set(CMAKE_COMMAND "@CMAKE_COMMAND@")
|
||||
set(source_file "@source_file@")
|
||||
set(NVCC_generated_dependency_file "@NVCC_generated_dependency_file@")
|
||||
set(cmake_dependency_file "@cmake_dependency_file@")
|
||||
set(CUDA_make2cmake "@CUDA_make2cmake@")
|
||||
set(CUDA_parse_cubin "@CUDA_parse_cubin@")
|
||||
set(build_cubin @build_cubin@)
|
||||
# We won't actually use these variables for now, but we need to set this, in
|
||||
# order to force this file to be run again if it changes.
|
||||
set(generated_file_path "@generated_file_path@")
|
||||
set(generated_file_internal "@generated_file@")
|
||||
set(generated_cubin_file_internal "@generated_cubin_file@")
|
||||
|
||||
set(CUDA_NVCC_EXECUTABLE "@CUDA_NVCC_EXECUTABLE@")
|
||||
set(CUDA_NVCC_FLAGS "@CUDA_NVCC_FLAGS@;@CUDA_WRAP_OPTION_NVCC_FLAGS@")
|
||||
@CUDA_NVCC_FLAGS_CONFIG@
|
||||
set(nvcc_flags "@nvcc_flags@")
|
||||
set(CUDA_NVCC_INCLUDE_ARGS "@CUDA_NVCC_INCLUDE_ARGS@")
|
||||
set(format_flag "@format_flag@")
|
||||
|
||||
if(build_cubin AND NOT generated_cubin_file)
|
||||
message(FATAL_ERROR "You must specify generated_cubin_file on the command line")
|
||||
endif()
|
||||
|
||||
# This is the list of host compilation flags. It C or CXX should already have
|
||||
# been chosen by FindCUDA.cmake.
|
||||
@CUDA_HOST_FLAGS@
|
||||
|
||||
# Take the compiler flags and package them up to be sent to the compiler via -Xcompiler
|
||||
set(nvcc_host_compiler_flags "")
|
||||
# If we weren't given a build_configuration, use Debug.
|
||||
if(NOT build_configuration)
|
||||
set(build_configuration Debug)
|
||||
endif()
|
||||
string(TOUPPER "${build_configuration}" build_configuration)
|
||||
#message("CUDA_NVCC_HOST_COMPILER_FLAGS = ${CUDA_NVCC_HOST_COMPILER_FLAGS}")
|
||||
foreach(flag ${CMAKE_HOST_FLAGS} ${CMAKE_HOST_FLAGS_${build_configuration}})
|
||||
# Extra quotes are added around each flag to help nvcc parse out flags with spaces.
|
||||
set(nvcc_host_compiler_flags "${nvcc_host_compiler_flags},\"${flag}\"")
|
||||
endforeach()
|
||||
if (nvcc_host_compiler_flags)
|
||||
set(nvcc_host_compiler_flags "-Xcompiler" ${nvcc_host_compiler_flags})
|
||||
endif()
|
||||
#message("nvcc_host_compiler_flags = \"${nvcc_host_compiler_flags}\"")
|
||||
# Add the build specific configuration flags
|
||||
list(APPEND CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS_${build_configuration}})
|
||||
|
||||
if(DEFINED CCBIN)
|
||||
set(CCBIN -ccbin "${CCBIN}")
|
||||
endif()
|
||||
|
||||
# cuda_execute_process - Executes a command with optional command echo and status message.
|
||||
#
|
||||
# status - Status message to print if verbose is true
|
||||
# command - COMMAND argument from the usual execute_process argument structure
|
||||
# ARGN - Remaining arguments are the command with arguments
|
||||
#
|
||||
# CUDA_result - return value from running the command
|
||||
#
|
||||
# Make this a macro instead of a function, so that things like RESULT_VARIABLE
|
||||
# and other return variables are present after executing the process.
|
||||
macro(cuda_execute_process status command)
|
||||
set(_command ${command})
|
||||
if(NOT _command STREQUAL "COMMAND")
|
||||
message(FATAL_ERROR "Malformed call to cuda_execute_process. Missing COMMAND as second argument. (command = ${command})")
|
||||
endif()
|
||||
if(verbose)
|
||||
execute_process(COMMAND "${CMAKE_COMMAND}" -E echo -- ${status})
|
||||
# Now we need to build up our command string. We are accounting for quotes
|
||||
# and spaces, anything else is left up to the user to fix if they want to
|
||||
# copy and paste a runnable command line.
|
||||
set(cuda_execute_process_string)
|
||||
foreach(arg ${ARGN})
|
||||
# If there are quotes, excape them, so they come through.
|
||||
string(REPLACE "\"" "\\\"" arg ${arg})
|
||||
# Args with spaces need quotes around them to get them to be parsed as a single argument.
|
||||
if(arg MATCHES " ")
|
||||
list(APPEND cuda_execute_process_string "\"${arg}\"")
|
||||
else()
|
||||
list(APPEND cuda_execute_process_string ${arg})
|
||||
endif()
|
||||
endforeach()
|
||||
# Echo the command
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E echo ${cuda_execute_process_string})
|
||||
endif(verbose)
|
||||
# Run the command
|
||||
execute_process(COMMAND ${ARGN} RESULT_VARIABLE CUDA_result )
|
||||
endmacro()
|
||||
|
||||
# Delete the target file
|
||||
cuda_execute_process(
|
||||
"Removing ${generated_file}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E remove "${generated_file}"
|
||||
)
|
||||
|
||||
# Generate the dependency file
|
||||
cuda_execute_process(
|
||||
"Generating dependency file: ${NVCC_generated_dependency_file}"
|
||||
COMMAND "${CUDA_NVCC_EXECUTABLE}"
|
||||
"${source_file}"
|
||||
${CUDA_NVCC_FLAGS}
|
||||
${nvcc_flags}
|
||||
${CCBIN}
|
||||
${nvcc_host_compiler_flags}
|
||||
-DNVCC
|
||||
-M
|
||||
-o "${NVCC_generated_dependency_file}"
|
||||
${CUDA_NVCC_INCLUDE_ARGS}
|
||||
)
|
||||
|
||||
if(CUDA_result)
|
||||
message(FATAL_ERROR "Error generating ${generated_file}")
|
||||
endif()
|
||||
|
||||
# Generate the cmake readable dependency file to a temp file. Don't put the
|
||||
# quotes just around the filenames for the input_file and output_file variables.
|
||||
# CMake will pass the quotes through and not be able to find the file.
|
||||
cuda_execute_process(
|
||||
"Generating temporary cmake readable file: ${cmake_dependency_file}.tmp"
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "input_file:FILEPATH=${NVCC_generated_dependency_file}"
|
||||
-D "output_file:FILEPATH=${cmake_dependency_file}.tmp"
|
||||
-P "${CUDA_make2cmake}"
|
||||
)
|
||||
|
||||
if(CUDA_result)
|
||||
message(FATAL_ERROR "Error generating ${generated_file}")
|
||||
endif()
|
||||
|
||||
# Copy the file if it is different
|
||||
cuda_execute_process(
|
||||
"Copy if different ${cmake_dependency_file}.tmp to ${cmake_dependency_file}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${cmake_dependency_file}.tmp" "${cmake_dependency_file}"
|
||||
)
|
||||
|
||||
if(CUDA_result)
|
||||
message(FATAL_ERROR "Error generating ${generated_file}")
|
||||
endif()
|
||||
|
||||
# Delete the temporary file
|
||||
cuda_execute_process(
|
||||
"Removing ${cmake_dependency_file}.tmp and ${NVCC_generated_dependency_file}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E remove "${cmake_dependency_file}.tmp" "${NVCC_generated_dependency_file}"
|
||||
)
|
||||
|
||||
if(CUDA_result)
|
||||
message(FATAL_ERROR "Error generating ${generated_file}")
|
||||
endif()
|
||||
|
||||
# Generate the code
|
||||
cuda_execute_process(
|
||||
"Generating ${generated_file}"
|
||||
COMMAND "${CUDA_NVCC_EXECUTABLE}"
|
||||
"${source_file}"
|
||||
${CUDA_NVCC_FLAGS}
|
||||
${nvcc_flags}
|
||||
${CCBIN}
|
||||
${nvcc_host_compiler_flags}
|
||||
-DNVCC
|
||||
${format_flag} -o "${generated_file}"
|
||||
${CUDA_NVCC_INCLUDE_ARGS}
|
||||
)
|
||||
|
||||
if(CUDA_result)
|
||||
# Since nvcc can sometimes leave half done files make sure that we delete the output file.
|
||||
cuda_execute_process(
|
||||
"Removing ${generated_file}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E remove "${generated_file}"
|
||||
)
|
||||
message(FATAL_ERROR "Error generating file ${generated_file}")
|
||||
else()
|
||||
message("Generated ${generated_file} successfully.")
|
||||
endif()
|
||||
|
||||
# Cubin resource report commands.
|
||||
if( build_cubin )
|
||||
# Run with -cubin to produce resource usage report.
|
||||
cuda_execute_process(
|
||||
"Generating ${generated_cubin_file}"
|
||||
COMMAND "${CUDA_NVCC_EXECUTABLE}"
|
||||
"${source_file}"
|
||||
${CUDA_NVCC_FLAGS}
|
||||
${nvcc_flags}
|
||||
${CCBIN}
|
||||
${nvcc_host_compiler_flags}
|
||||
-DNVCC
|
||||
-cubin
|
||||
-o "${generated_cubin_file}"
|
||||
${CUDA_NVCC_INCLUDE_ARGS}
|
||||
)
|
||||
|
||||
# Execute the parser script.
|
||||
cuda_execute_process(
|
||||
"Executing the parser script"
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "input_file:STRING=${generated_cubin_file}"
|
||||
-P "${CUDA_parse_cubin}"
|
||||
)
|
||||
|
||||
endif( build_cubin )
|
19
configure
vendored
@ -18,7 +18,7 @@ fi
|
||||
|
||||
|
||||
help=false
|
||||
build="Debug" # release
|
||||
build="debug" # release
|
||||
prefix=/usr/local
|
||||
|
||||
# Parse the args
|
||||
@ -26,9 +26,8 @@ for i in "$@"
|
||||
do
|
||||
case $i in
|
||||
--help ) help=true ;;
|
||||
--debug ) build="Debug" ;;
|
||||
--release ) build="Release" ;;
|
||||
--prefix=* ) prefix="${i#--prefix=}" ;;
|
||||
--debug ) build="debug" ;;
|
||||
--release ) build="release" ;;
|
||||
--prefix=* ) prefix="${i#--prefix=}" ;;
|
||||
* ) echo "Unrecognised argument $i" ;;
|
||||
esac
|
||||
@ -53,7 +52,7 @@ echo "-- Configuring nvidia-texture-tools "`cat VERSION`
|
||||
|
||||
mkdir -p ./build-$build
|
||||
cd ./build-$build
|
||||
$CMAKE .. -DNVTT_SHARED=1 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
|
||||
$CMAKE .. -DNVTT_SHARED=0 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
|
||||
cd ..
|
||||
|
||||
echo ""
|
||||
@ -62,15 +61,15 @@ echo ""
|
||||
|
||||
cat > Makefile << EOF
|
||||
all:
|
||||
@make --no-print-directory -C build-$build/
|
||||
@+make --no-print-directory -C build-$build/
|
||||
install:
|
||||
@make install --no-print-directory -C build-$build/
|
||||
@+make install --no-print-directory -C build-$build/
|
||||
package:
|
||||
@make package --no-print-directory -C build-$build/
|
||||
@+make package --no-print-directory -C build-$build/
|
||||
test:
|
||||
@make test --no-print-directory -C build-$build/
|
||||
@+make test --no-print-directory -C build-$build/
|
||||
clean:
|
||||
@make clean --no-print-directory -C build-$build/
|
||||
@+make clean --no-print-directory -C build-$build/
|
||||
distclean:
|
||||
@rm -Rf build-$build/
|
||||
EOF
|
||||
|
BIN
data/cubemaps/MeadowTrail.dds
Normal file
BIN
data/luma/testpat_orig.1k.png
Executable file
After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 828 B |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
BIN
data/testsuite/farbrausch/t.2d.pn02.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
data/testsuite/farbrausch/t.aircondition.01.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
data/testsuite/farbrausch/t.bricks.02.png
Normal file
After Width: | Height: | Size: 541 KiB |
BIN
data/testsuite/farbrausch/t.bricks.05.png
Normal file
After Width: | Height: | Size: 492 KiB |
BIN
data/testsuite/farbrausch/t.concrete.cracked.01.png
Normal file
After Width: | Height: | Size: 375 KiB |
BIN
data/testsuite/farbrausch/t.envi.colored02.png
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
data/testsuite/farbrausch/t.envi.colored03.png
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
data/testsuite/farbrausch/t.font.01.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
data/testsuite/farbrausch/t.sewers.01.png
Normal file
After Width: | Height: | Size: 444 KiB |
BIN
data/testsuite/farbrausch/t.train.03.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
data/testsuite/farbrausch/t.yello.01.png
Normal file
After Width: | Height: | Size: 415 KiB |
BIN
data/testsuite/id_nmap/01_arcade.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
data/testsuite/id_nmap/02_tentacle.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
data/testsuite/id_nmap/03_chest.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
data/testsuite/id_nmap/04_face.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
data/testsuite/id_tnmap/01_dot1.png
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
data/testsuite/id_tnmap/02_dot2.png
Normal file
After Width: | Height: | Size: 621 KiB |
BIN
data/testsuite/id_tnmap/03_dot3.png
Normal file
After Width: | Height: | Size: 168 KiB |
BIN
data/testsuite/id_tnmap/04_dot4.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
data/testsuite/id_tnmap/05_lumpy.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
data/testsuite/id_tnmap/06_voronoi.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
data/testsuite/id_tnmap/07_turtle.png
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
data/testsuite/id_tnmap/08_normalmap.png
Normal file
After Width: | Height: | Size: 407 KiB |
BIN
data/testsuite/id_tnmap/09_metal.png
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
data/testsuite/id_tnmap/10_skin.png
Normal file
After Width: | Height: | Size: 574 KiB |
BIN
data/testsuite/id_tnmap/11_onetile.png
Normal file
After Width: | Height: | Size: 149 KiB |
BIN
data/testsuite/id_tnmap/12_barrel.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
data/testsuite/id_tnmap/13_arcade.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
data/testsuite/id_tnmap/14_tentacle.png
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
data/testsuite/id_tnmap/15_chest.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
data/testsuite/id_tnmap/16_face.png
Normal file
After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 719 KiB After Width: | Height: | Size: 719 KiB |
Before Width: | Height: | Size: 604 KiB After Width: | Height: | Size: 604 KiB |
Before Width: | Height: | Size: 491 KiB After Width: | Height: | Size: 491 KiB |
Before Width: | Height: | Size: 622 KiB After Width: | Height: | Size: 622 KiB |
Before Width: | Height: | Size: 767 KiB After Width: | Height: | Size: 767 KiB |
Before Width: | Height: | Size: 604 KiB After Width: | Height: | Size: 604 KiB |
Before Width: | Height: | Size: 553 KiB After Width: | Height: | Size: 553 KiB |
Before Width: | Height: | Size: 770 KiB After Width: | Height: | Size: 770 KiB |
Before Width: | Height: | Size: 569 KiB After Width: | Height: | Size: 569 KiB |
Before Width: | Height: | Size: 580 KiB After Width: | Height: | Size: 580 KiB |
Before Width: | Height: | Size: 606 KiB After Width: | Height: | Size: 606 KiB |
Before Width: | Height: | Size: 519 KiB After Width: | Height: | Size: 519 KiB |
Before Width: | Height: | Size: 803 KiB After Width: | Height: | Size: 803 KiB |
Before Width: | Height: | Size: 676 KiB After Width: | Height: | Size: 676 KiB |
Before Width: | Height: | Size: 598 KiB After Width: | Height: | Size: 598 KiB |
Before Width: | Height: | Size: 522 KiB After Width: | Height: | Size: 522 KiB |
Before Width: | Height: | Size: 588 KiB After Width: | Height: | Size: 588 KiB |
Before Width: | Height: | Size: 763 KiB After Width: | Height: | Size: 763 KiB |
Before Width: | Height: | Size: 656 KiB After Width: | Height: | Size: 656 KiB |
Before Width: | Height: | Size: 481 KiB After Width: | Height: | Size: 481 KiB |
Before Width: | Height: | Size: 622 KiB After Width: | Height: | Size: 622 KiB |
Before Width: | Height: | Size: 686 KiB After Width: | Height: | Size: 686 KiB |
Before Width: | Height: | Size: 544 KiB After Width: | Height: | Size: 544 KiB |
Before Width: | Height: | Size: 690 KiB After Width: | Height: | Size: 690 KiB |
BIN
data/testsuite/lightmap/cottage.dds
Executable file
BIN
data/testsuite/lightmap/specruin.dds
Executable file
BIN
data/testsuite/lightmap/tower.dds
Executable file
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |