Debian Codegraph @

src/kosmickrisp/vulkan/kk_debug.h

raw symbols SCIP
1 /*
2 * Copyright 2025 LunarG, Inc.
3 * SPDX-License-Identifier: MIT
4 */
5 #ifndef KK_DEBUG_H
6 #define KK_DEBUG_H 1
7
8 enum kk_debug {
9 /* Print out the NIR from the compiler */
10 KK_DEBUG_NIR = 1ull << 0,
11 /* Print out the generated MSL source code from the compiler */
12 KK_DEBUG_MSL = 1ull << 1,
13 /* Forces robustness for all shaders */
14 KK_DEBUG_FORCE_ROBUSTNESS = 1ull << 2,
15 };
16
17 extern enum kk_debug kk_mesa_debug_flags;
18
19 #define KK_DEBUG(flag) unlikely(kk_mesa_debug_flags &KK_DEBUG_##flag)
20
21 extern void kk_process_debug_variable(void);
22
23 #endif /* KK_DEBUG_H */