summaryrefslogtreecommitdiff
path: root/tools/gfx/renderer-shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/renderer-shared.h')
-rw-r--r--tools/gfx/renderer-shared.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h
index ed045c617..9aedc8c74 100644
--- a/tools/gfx/renderer-shared.h
+++ b/tools/gfx/renderer-shared.h
@@ -25,7 +25,7 @@ struct GfxGUID
static const Slang::Guid IID_IBufferResource;
static const Slang::Guid IID_ITextureResource;
static const Slang::Guid IID_IInputLayout;
- static const Slang::Guid IID_IRenderer;
+ static const Slang::Guid IID_IDevice;
static const Slang::Guid IID_IShaderObjectLayout;
static const Slang::Guid IID_IShaderObject;
static const Slang::Guid IID_IRenderPassLayout;
@@ -606,4 +606,18 @@ public:
Slang::Dictionary<slang::TypeReflection*, Slang::RefPtr<ShaderObjectLayoutBase>> m_shaderObjectLayoutCache;
};
+IDebugCallback*& _getDebugCallback();
+IDebugCallback* _getNullDebugCallback();
+inline IDebugCallback* getDebugCallback()
+{
+ auto rs = _getDebugCallback();
+ if (rs)
+ {
+ return rs;
+ }
+ else
+ {
+ return _getNullDebugCallback();
+ }
+}
}