summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-01-21 10:17:39 -0800
committerGitHub <noreply@github.com>2022-01-21 10:17:39 -0800
commitf85bc7ae98486b37518958e659f659f1ff9b125c (patch)
treeb18f40a62ac51ee77bdf651a6d9a26f277019ab4 /tools/gfx/debug-layer.h
parent11d248293f1b56a790faadead1e3d94de81f29a2 (diff)
GFX: seperated ShaderTable. (#2090)
Diffstat (limited to 'tools/gfx/debug-layer.h')
-rw-r--r--tools/gfx/debug-layer.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/gfx/debug-layer.h b/tools/gfx/debug-layer.h
index 04dafadf2..a2de7eb31 100644
--- a/tools/gfx/debug-layer.h
+++ b/tools/gfx/debug-layer.h
@@ -156,6 +156,15 @@ public:
uint64_t timeout) override;
virtual SLANG_NO_THROW Result SLANG_MCALL getTextureAllocationInfo(
const ITextureResource::Desc& desc, size_t* outSize, size_t* outAlignment) override;
+ virtual SLANG_NO_THROW Result SLANG_MCALL
+ createShaderTable(const IShaderTable::Desc& desc, IShaderTable** outTable) override;
+};
+
+class DebugShaderTable : public DebugObject<IShaderTable>
+{
+public:
+ SLANG_COM_OBJECT_IUNKNOWN_ALL;
+ IShaderTable* getInterface(const Slang::Guid& guid);
};
class DebugQueryPool : public DebugObject<IQueryPool>
@@ -511,7 +520,8 @@ public:
virtual SLANG_NO_THROW void SLANG_MCALL
bindPipeline(IPipelineState* state, IShaderObject** outRootObject) override;
virtual SLANG_NO_THROW void SLANG_MCALL dispatchRays(
- const char* rayGenShaderName,
+ uint32_t rayGenShaderIndex,
+ IShaderTable* shaderTable,
int32_t width,
int32_t height,
int32_t depth) override;