yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Ellie Hermaszewskaformatf65d756bf

master
842 B30 linesraw
1// debug-texture.h
2#pragma once
3#include "debug-base.h"
4
5namespace gfx
6{
7using namespace Slang;
8
9namespace debug
10{
11
12class DebugTextureResource : public DebugObject<ITextureResource>
13{
14public:
15    SLANG_COM_OBJECT_IUNKNOWN_ALL;
16
17public:
18    ITextureResource* getInterface(const Slang::Guid& guid);
19    virtual SLANG_NO_THROW Type SLANG_MCALL getType() override;
20    virtual SLANG_NO_THROW Desc* SLANG_MCALL getDesc() override;
21    virtual SLANG_NO_THROW Result SLANG_MCALL
22    getNativeResourceHandle(InteropHandle* outHandle) override;
23    virtual SLANG_NO_THROW Result SLANG_MCALL getSharedHandle(InteropHandle* outHandle) override;
24
25    virtual SLANG_NO_THROW Result SLANG_MCALL setDebugName(const char* name) override;
26    virtual SLANG_NO_THROW const char* SLANG_MCALL getDebugName() override;
27};
28
29} // namespace debug
30} // namespace gfx