summaryrefslogtreecommitdiffstats
path: root/examples/example-base/example-base.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-04-29 14:19:51 -0700
committerGitHub <noreply@github.com>2021-04-29 14:19:51 -0700
commit2482271fffbe85efc1bd7efcf74a76f6ed436012 (patch)
tree707da083c8eda527b7c548d636cb884cf53c53eb /examples/example-base/example-base.h
parentad6f3070251f25cf022c231b8567d78e98061127 (diff)
`gfx` DebugCallback and debug layer. (#1822)
* `gfx` DebugCallback and debug layer.
Diffstat (limited to 'examples/example-base/example-base.h')
-rw-r--r--examples/example-base/example-base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/example-base/example-base.h b/examples/example-base/example-base.h
index 67f722c11..a1c46aa53 100644
--- a/examples/example-base/example-base.h
+++ b/examples/example-base/example-base.h
@@ -72,10 +72,13 @@ inline void diagnoseIfNeeded(slang::IBlob* diagnosticsBlob)
}
}
+void initDebugCallback();
template<typename TApp>
int innerMain()
{
+ initDebugCallback();
+
TApp app;
if (SLANG_FAILED(app.initialize()))