blob: 963b5bd1b062afb71a8c6eaaaaf8675827c4334c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// metal-transient-heap.h
#pragma once
#include "metal-base.h"
#include "metal-buffer.h"
#include "metal-command-buffer.h"
namespace gfx
{
using namespace Slang;
namespace metal
{
class TransientResourceHeapImpl
: public TransientResourceHeapBaseImpl<DeviceImpl, BufferResourceImpl>
{
private:
typedef TransientResourceHeapBaseImpl<DeviceImpl, BufferResourceImpl> Super;
public:
NS::SharedPtr<MTL::CommandQueue> m_commandQueue;
Result init(const ITransientResourceHeap::Desc& desc, DeviceImpl* device);
~TransientResourceHeapImpl();
public:
virtual SLANG_NO_THROW Result SLANG_MCALL
createCommandBuffer(ICommandBuffer** outCommandBuffer) override;
virtual SLANG_NO_THROW Result SLANG_MCALL synchronizeAndReset() override;
};
} // namespace metal
} // namespace gfx
|