yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
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 : 15SLANG_COM_OBJECT_IUNKNOWN_ADD_REF ; 16SLANG_COM_OBJECT_IUNKNOWN_RELEASE ; 17 18public : 19virtual SLANG_NO_THROW SlangResult SLANG_MCALL 20queryInterface (SlangUUID const & uuid ,void ** outObject )override ; 21 22virtual SLANG_NO_THROW Result SLANG_MCALL synchronizeAndReset ()override ; 23virtual SLANG_NO_THROW Result SLANG_MCALL finish () override; 24virtual SLANG_NO_THROW Result SLANG_MCALL 25createCommandBuffer ( ICommandBuffer ** outCommandBuffer) override; 26}; 27 28class DebugTransientResourceHeapD3D12 : public DebugObject < ITransientResourceHeapD3D12 > 29{ 30public: 31SLANG_COM_OBJECT_IUNKNOWN_ADD_REF ; 32SLANG_COM_OBJECT_IUNKNOWN_RELEASE ; 33 34public: 35virtual SLANG_NO_THROW SlangResult SLANG_MCALL 36queryInterface ( SlangUUID const & uuid, void ** outObject) override; 37virtual SLANG_NO_THROW Result SLANG_MCALL allocateTransientDescriptorTable ( 38DescriptorType type, 39GfxCount count, 40Offset & outDescriptorOffset, 41void ** outD3DDescriptorHeapHandle) override; 42}; 43 44} // namespace debug 45} // namespace gfx