yum-mirror/slang

Making it easier to work with shaders

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

Ellie Hermaszewskaformatf65d756bf

master
978 B38 linesraw
1// debug-resource-views.h
2#pragma once
3#include "debug-base.h"
4
5namespace gfx
6{
7using namespace Slang;
8
9namespace debug
10{
11
12class DebugResourceView : public DebugObject<IResourceView>
13{
14public:
15    SLANG_COM_OBJECT_IUNKNOWN_ALL;
16
17public:
18    IResourceView* getInterface(const Slang::Guid& guid);
19    virtual SLANG_NO_THROW Desc* SLANG_MCALL getViewDesc() override;
20    virtual SLANG_NO_THROW Result SLANG_MCALL
21    getNativeHandle(InteropHandle* outNativeHandle) override;
22};
23
24class DebugAccelerationStructure : public DebugObject<IAccelerationStructure>
25{
26public:
27    SLANG_COM_OBJECT_IUNKNOWN_ALL;
28
29public:
30    IAccelerationStructure* getInterface(const Slang::Guid& guid);
31    virtual SLANG_NO_THROW DeviceAddress SLANG_MCALL getDeviceAddress() override;
32    virtual SLANG_NO_THROW Result SLANG_MCALL
33    getNativeHandle(InteropHandle* outNativeHandle) override;
34    virtual SLANG_NO_THROW Desc* SLANG_MCALL getViewDesc() override;
35};
36
37} // namespace debug
38} // namespace gfx