Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
GraphicsCommandListD3D12.hpp
Go to the documentation of this file.
1#pragma once
2#if FARO_OS_WINDOWS
4#include <d3d12.h>
5
6namespace Faro
7{
8 class GraphicsCommandListD3D12 : public GraphicsCommandList
9 {
10 public:
11 using IGraphicsAdapterChild::Init;
12
13 void Init() override;
14
15 void Destroy() override;
16
17 void Reset() override;
18 void Execute(Array<GraphicsSemaphore*> waitForSemaphores) override;
19
20 void SetResourceState(GraphicsBuffer* buffer, GraphicsResourceState state) override;
21
22 void CopyBuffer(GraphicsBuffer* source, GraphicsBuffer* destination) override;
23
24 void ClearRenderTarget(GraphicsBuffer* renderTarget, FloatColor color) override;
25
26 private:
27 ID3D12CommandAllocator* allocator = nullptr;
28 ID3D12GraphicsCommandList* commandList = nullptr;
29 };
30}
31#endif
Definition Array.hpp:8