diff options
Diffstat (limited to 'tools/gfx/debug-layer/debug-texture.h')
| -rw-r--r-- | tools/gfx/debug-layer/debug-texture.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/gfx/debug-layer/debug-texture.h b/tools/gfx/debug-layer/debug-texture.h new file mode 100644 index 000000000..79e3aa3cf --- /dev/null +++ b/tools/gfx/debug-layer/debug-texture.h @@ -0,0 +1,29 @@ +// debug-texture.h +#pragma once +#include "debug-base.h" + +namespace gfx +{ +using namespace Slang; + +namespace debug +{ + +class DebugTextureResource : public DebugObject<ITextureResource> +{ +public: + SLANG_COM_OBJECT_IUNKNOWN_ALL; + +public: + ITextureResource* getInterface(const Slang::Guid& guid); + virtual SLANG_NO_THROW Type SLANG_MCALL getType() override; + virtual SLANG_NO_THROW Desc* SLANG_MCALL getDesc() override; + virtual SLANG_NO_THROW Result SLANG_MCALL getNativeResourceHandle(InteropHandle* outHandle) override; + virtual SLANG_NO_THROW Result SLANG_MCALL getSharedHandle(InteropHandle* outHandle) override; + + virtual SLANG_NO_THROW Result SLANG_MCALL setDebugName(const char* name) override; + virtual SLANG_NO_THROW const char* SLANG_MCALL getDebugName() override; +}; + +} // namespace debug +} // namespace gfx |
