Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
GraphicsFenceD3D12.hpp
Go to the documentation of this file.
1#pragma once
2#if FARO_OS_WINDOWS
3#include <GraphicsFence.hpp>
4#include <d3d12.h>
5#include <Primitives.hpp>
6
7namespace Faro
8{
9 class GraphicsFenceD3D12 : public GraphicsFence
10 {
11 public:
12 using IGraphicsAdapterChild::Init;
13
14 void Init() override;
15 void Destroy() override;
16
17 void Trigger() override;
18 bool HasFinished() override;
19 void WaitForFinish() override;
20
21 private:
22 uint32 triggerValue = 0;
23
24 ID3D12Fence* fence = nullptr;
25 HANDLE fenceEvent = nullptr;
26 };
27}
28#endif
Definition Array.hpp:8
uint32_t uint32
Definition Primitives.hpp:12