yum-mirror/slang

Making it easier to work with shaders

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

Ellie Hermaszewskaformatf65d756bf

master
1.2 KiB45 linesraw
1// debug-transient-heap.h
2#pragma once
3#include "debug-base.h"
4
5namespace gfx
6{
7using namespace Slang;
8
9namespace debug
10{
11
12class DebugTransientResourceHeap : public DebugObject<ITransientResourceHeap>
13{
14public:
15    SLANG_COM_OBJECT_IUNKNOWN_ADD_REF;
16    SLANG_COM_OBJECT_IUNKNOWN_RELEASE;
17
18public:
19    virtual SLANG_NO_THROW SlangResult SLANG_MCALL
20    queryInterface(SlangUUID const& uuid, void** outObject) override;
21
22    virtual SLANG_NO_THROW Result SLANG_MCALL synchronizeAndReset() override;
23    virtual SLANG_NO_THROW Result SLANG_MCALL finish() override;
24    virtual SLANG_NO_THROW Result SLANG_MCALL
25    createCommandBuffer(ICommandBuffer** outCommandBuffer) override;
26};
27
28class DebugTransientResourceHeapD3D12 : public DebugObject<ITransientResourceHeapD3D12>
29{
30public:
31    SLANG_COM_OBJECT_IUNKNOWN_ADD_REF;
32    SLANG_COM_OBJECT_IUNKNOWN_RELEASE;
33
34public:
35    virtual SLANG_NO_THROW SlangResult SLANG_MCALL
36    queryInterface(SlangUUID const& uuid, void** outObject) override;
37    virtual SLANG_NO_THROW Result SLANG_MCALL allocateTransientDescriptorTable(
38        DescriptorType type,
39        GfxCount count,
40        Offset& outDescriptorOffset,
41        void** outD3DDescriptorHeapHandle) override;
42};
43
44} // namespace debug
45} // namespace gfx