From f85bc7ae98486b37518958e659f659f1ff9b125c Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 21 Jan 2022 10:17:39 -0800 Subject: GFX: seperated ShaderTable. (#2090) --- tools/gfx/debug-layer.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tools/gfx/debug-layer.h') 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 +{ +public: + SLANG_COM_OBJECT_IUNKNOWN_ALL; + IShaderTable* getInterface(const Slang::Guid& guid); }; class DebugQueryPool : public DebugObject @@ -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; -- cgit v1.2.3