@@ -90,6 +90,9 @@ namespace IGC
90
90
{
91
91
namespace Debug
92
92
{
93
+
94
+ #if defined( IGC_EXPORTS ) || defined( IGC_DEBUG_VARIABLES )
95
+
93
96
EnumStr IGC_DEBUG_API_CALL str (DebugFlag value)
94
97
{
95
98
#define CASE (x ) case DebugFlag::x: return STRINGIFY(x)
@@ -244,7 +247,7 @@ namespace IGC
244
247
IGC_ASSERT_EXIT_MESSAGE ((0 <= static_cast <int >(flag)), " range sanity check" );
245
248
IGC_ASSERT_EXIT_MESSAGE ((static_cast <int >(flag) < static_cast <int > (DebugFlag::END)), " range sanity check" );
246
249
247
- #if defined( _DEBUG ) || defined( _INTERNAL )
250
+ #if defined( IGC_DEBUG_VARIABLES )
248
251
g_debugFlags[ static_cast <int >( flag ) ] = enabled;
249
252
#else
250
253
(void ) flag;
@@ -257,7 +260,7 @@ namespace IGC
257
260
IGC_ASSERT_EXIT_MESSAGE ((0 <= static_cast <int >(flag)), " range sanity check" );
258
261
IGC_ASSERT_EXIT_MESSAGE ((static_cast <int >(flag) < static_cast <int > (DebugFlag::END)), " range sanity check" );
259
262
260
- #if defined( _DEBUG ) || defined( _INTERNAL )
263
+ #if defined( IGC_DEBUG_VARIABLES )
261
264
262
265
#if defined(_WIN32 )|| defined( _WIN64 )
263
266
// Disable Dump for OS Applications
@@ -285,7 +288,7 @@ namespace IGC
285
288
IGC_ASSERT_EXIT_MESSAGE ((0 <= static_cast <int >(type)), " range sanity check" );
286
289
IGC_ASSERT_EXIT_MESSAGE ((static_cast <int >(type) < static_cast <int > (DumpType::END)), " range sanity check" );
287
290
288
- #if defined( _DEBUG ) || defined( _INTERNAL )
291
+ #if defined( IGC_DEBUG_VARIABLES )
289
292
switch (loc)
290
293
{
291
294
case DumpLoc::ODS : g_dumpFlags[ static_cast <int >(type) ].dumpODS = enabled; break ;
@@ -304,7 +307,7 @@ namespace IGC
304
307
IGC_ASSERT_EXIT_MESSAGE ((0 <= static_cast <int >(type)), " range sanity check" );
305
308
IGC_ASSERT_EXIT_MESSAGE ((static_cast <int >(type) < static_cast <int > (DumpType::END)), " range sanity check" );
306
309
307
- #if defined( _DEBUG ) || defined( _INTERNAL )
310
+ #if defined( IGC_DEBUG_VARIABLES )
308
311
309
312
#if defined(_WIN32 )|| defined( _WIN64 )
310
313
// Disable Dump for OS Applications
@@ -328,7 +331,7 @@ namespace IGC
328
331
329
332
void IGC_DEBUG_API_CALL SetShaderCorpusName ( CorpusName name )
330
333
{
331
- #if defined( _DEBUG ) || defined( _INTERNAL )
334
+ #if defined( IGC_DEBUG_VARIABLES )
332
335
g_shaderCorpusName = name;
333
336
#else
334
337
(void ) name;
@@ -337,7 +340,7 @@ namespace IGC
337
340
338
341
CorpusName IGC_DEBUG_API_CALL GetShaderCorpusName ()
339
342
{
340
- #if defined( _DEBUG ) || defined( _INTERNAL )
343
+ #if defined( IGC_DEBUG_VARIABLES )
341
344
return g_shaderCorpusName.c_str ();
342
345
#else
343
346
return " " ;
@@ -644,5 +647,7 @@ namespace IGC
644
647
{
645
648
return g_cBuildInfo;
646
649
}
650
+
651
+ #endif // defined( IGC_EXPORTS ) || defined( IGC_DEBUG_VARIABLES )
647
652
}
648
653
}
0 commit comments