summaryrefslogtreecommitdiffstats
path: root/tools/unit-test
diff options
context:
space:
mode:
Diffstat (limited to 'tools/unit-test')
-rw-r--r--tools/unit-test/slang-unit-test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/unit-test/slang-unit-test.h b/tools/unit-test/slang-unit-test.h
index 49cb5d8d7..db921ded9 100644
--- a/tools/unit-test/slang-unit-test.h
+++ b/tools/unit-test/slang-unit-test.h
@@ -37,6 +37,11 @@ public:
ITestReporter* getTestReporter();
+namespace rhi
+{
+class IDebugCallback;
+}
+
struct UnitTestContext
{
slang::IGlobalSession* slangGlobalSession;
@@ -44,6 +49,7 @@ struct UnitTestContext
const char* executableDirectory;
Slang::RenderApiFlags enabledApis;
bool enableDebugLayers;
+ rhi::IDebugCallback* debugCallback = nullptr;
};
typedef void (*UnitTestFunc)(UnitTestContext*);