summaryrefslogtreecommitdiffstats
path: root/tools/gfx/renderer-shared.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-02-01 20:00:55 -0800
committerGitHub <noreply@github.com>2022-02-01 20:00:55 -0800
commit5deb82929d289d6341e1919ee95b18b10f6db789 (patch)
tree196daa08b9e2805e6c686759a10f186ef57b3763 /tools/gfx/renderer-shared.h
parente59516fa8c3a16eb7b99a928c5b85b97bf44fd72 (diff)
GFX: Add API interception mechanism for pipeline creation. (#2115)
This allows the user application to intercept API calls to create pipeline states. This feature can be used to integrate NVAPI in the user application. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/renderer-shared.h')
-rw-r--r--tools/gfx/renderer-shared.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h
index 6baade085..6bf86e28b 100644
--- a/tools/gfx/renderer-shared.h
+++ b/tools/gfx/renderer-shared.h
@@ -40,6 +40,7 @@ struct GfxGUID
static const Slang::Guid IID_IAccelerationStructure;
static const Slang::Guid IID_IFence;
static const Slang::Guid IID_IShaderTable;
+ static const Slang::Guid IID_IPipelineCreationAPIDispatcher;
};
// We use a `BreakableReference` to avoid the cyclic reference situation in gfx implementation.
@@ -1355,6 +1356,8 @@ protected:
virtual SLANG_NO_THROW SlangResult SLANG_MCALL initialize(const Desc& desc);
protected:
Slang::List<Slang::String> m_features;
+ Slang::ComPtr<IPipelineCreationAPIDispatcher> m_pipelineCreationAPIDispatcher;
+
public:
SlangContext slangContext;
ShaderCache shaderCache;