From 43b6f5c36cbe2529d93df0e44e319a330487ed0d Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 4 Jan 2022 11:24:11 -0800 Subject: gfx: Fix root shader object implementation in debug layer. (#2059) * gfx: Fix root shader object implementation in debug layer. * Fix. Co-authored-by: Yong He Co-authored-by: Theresa Foley --- tools/gfx/debug-layer.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/gfx/debug-layer.h') diff --git a/tools/gfx/debug-layer.h b/tools/gfx/debug-layer.h index 35410530e..c5482da87 100644 --- a/tools/gfx/debug-layer.h +++ b/tools/gfx/debug-layer.h @@ -293,9 +293,18 @@ public: setConstantBufferOverride(IBufferResource* constantBuffer) override; public: + // Type name of an ordinary shader object. Slang::String m_typeName; + + // The slang Type of an ordinary shader object. This is null for root objects. slang::TypeReflection* m_slangType = nullptr; + + // The slang program from which a root shader object is created, this is null for ordinary + // objects. + Slang::ComPtr m_rootComponentType; + DebugDevice* m_device; + Slang::List> m_entryPoints; Slang::Dictionary> m_objects; Slang::Dictionary> m_resources; @@ -626,6 +635,10 @@ public: public: IShaderProgram* getInterface(const Slang::Guid& guid); + DebugShaderProgram(const IShaderProgram::Desc& desc); + +public: + Slang::ComPtr m_slangProgram; }; class DebugTransientResourceHeap : public DebugObject -- cgit v1.2.3