-
Notifications
You must be signed in to change notification settings - Fork 196
/
usedefinitions.h
113 lines (94 loc) · 5.89 KB
/
usedefinitions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
//==============================================================================
// Copyright (c) 2007-2024 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2004-2006 ATI Technologies Inc.
//
// 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.
//
/// \file UseDefinitions.h Common Feature Enablement in Compressonator SDK
//
//==============================================================================
#ifndef NO_LEGACY_BEHAVIOR
// External Libs
#ifndef USE_BOOST
#define USE_BOOST // Enable using Boost code
#endif
#ifndef USE_ASSIMP
// #define USE_ASSIMP
#endif
#ifndef USE_CONVECTION_KERNELS
// #define USE_CONVECTION_KERNELS // Test External Lib : ConvectionKernels for quality& performance, to enable use q=0.1 in HPC
#endif
#ifndef USE_GPU_PIPELINE_VULKAN
//#define USE_GPU_PIPELINE_VULKAN // Enable to use CMP_Core codecs on a Vulkan Pipeline
#endif
#ifndef USE_CPU_PERFORMANCE_COUNTERS
//#define USE_CPU_PERFORMANCE_COUNTERS // Enable to use performance monitoring with CPU high precision counters in place of GPU query performance counters
#endif
//#define TEST_CMP_CORE_DECODER // Test CMP_Core Decoders using Compressonator SDK Decoders,
#define USE_QTWEBKIT // Enable Qt Webengine interfaces for GUI welcome page
//#define BC7_DEBUG_TO_RESULTS_TXT // Send debug info to a results text file
//#define DXT5_COMPDEBUGGER // Remote connect data to Comp Debugger views
//#define BC6H_COMPDEBUGGER // Remote connect data to Comp Debugger views
//#define BC7_COMPDEBUGGER // Remote connect data to Comp Debugger views
//#define BC6H_NO_OPTIMIZE_ENDPOINTS // Turn off BC6H optimization of endpoints - useful for debugging quantization and mode checking
//#define BC6H_DEBUG_TO_RESULTS_TXT // Generates a Results.txt file on exe working directory; MultiThreading is turned off for debuging to text file
//#define BC6H_DECODE_DEBUG // Enables debug info on decoder
//#define GT_COMPDEBUGGER // Remote connect data to Comp Debugger views
#ifndef ENABLE_MAKE_COMPATIBLE_API
#define ENABLE_MAKE_COMPATIBLE_API // Byte<->Float to make all source and dest compatible
#endif
// V2.4 / V2.5 features and changes
#define USE_OLD_SWIZZLE // Remove swizzle flag and abide by CMP_Formats
// Model changes
#define USE_MESH_CLI // CLI Process Mesh (only support glTF and OBJ files)
#ifndef CMAKE_DRACO_NOT_FOUND
#define USE_MESH_DRACO_EXTENSION // Mesh Compression with Draco support in glTF and OBJ files only
#endif
// todo: multiple mesh decompression is still under development. Enable define below will generate corrupted view.
// #define USE_MULTIPLE_MESH_DECODE // Enable multiple meshes and multiple primitives draco decompression
// Codec options
#define USE_ETCPACK // Use ETCPack for ETC2 else use CModel code!
// todo: recommended to use default setting for now as the settings for different draco level may produce corrupted textures.
// #define USE_MESH_DRACO_SETTING // Expose draco settings for draco mesh compression,
// if disabled default setting will be used for mesh compression
// #define USE_GLTF2_MIPSET // Enable Image Transcode & Compression support for GLTF files using TextureIO
// #define USE_FILEIO // Used for debugging code
// New features under devlopement
// #define USE_GTC // LDR Gradient Texture Compressor patent pending
// #define USE_BASIS // Future release:: Universal format for transcoding codecs
// #define USE_CMP_TRANSCODE // Future release:: Transcode BASIS/GTC to other compressed formats
// To Be enabled in future releases
// #define SUPPORT_ETC_ALPHA // for ATC_RGB output enable A
// #define SHOW_PROCESS_MEMORY // display available CPU process memory
// #define USE_BCN_IMAGE_DEBUG // Enables Combobox in Image View for low level BCn based block compression in debug mode
// #define USE_CRN // Enabled .crn file output using CRUNCH encoder
// #define USE_3DCONVERT // Enable 3D model conversion (glTF<->obj) icon
// #define ENABLE_USER_ETC2S_FORMATS // Enable users to set these formats in CLI and GUI applications
// All of these definitions need to be removed from this file!!
// into CMakeList.txt, the content here is temporary
//#define OPTION_CMP_DIRECTX 1
//#define OPTION_CMP_OPENGL 1
//#define OPTION_CMP_VULKAN 0
//#define OPTION_CMP_QT 0
//#define OPTION_BUILD_SHARED_LIBS 1
//#define CMP_BUILD_SHARED_LIBS 1
//#define BUILD_AS_PLUGIN_DLL 1
//#define NO_LEGACY_BEHAVIOR 1
//#define USE_QT_IMAGELOAD 1
#endif