Make D3D12Fence implement IFence interface
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
#include <wrl/client.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include "../Fence.h"
|
||||
|
||||
using Microsoft::WRL::ComPtr;
|
||||
|
||||
namespace XCEngine {
|
||||
namespace RHI {
|
||||
|
||||
class D3D12Fence {
|
||||
class D3D12Fence : public IFence {
|
||||
public:
|
||||
D3D12Fence();
|
||||
~D3D12Fence();
|
||||
@@ -18,10 +19,10 @@ public:
|
||||
bool Initialize(ID3D12Device* device, uint64_t initialValue = 0);
|
||||
void Shutdown();
|
||||
|
||||
void Signal(uint64_t value);
|
||||
void Wait(uint64_t value);
|
||||
uint64_t GetCompletedValue();
|
||||
void* GetEventHandle() { return m_eventHandle; }
|
||||
void Signal(uint64_t value) override;
|
||||
void Wait(uint64_t value) override;
|
||||
uint64_t GetCompletedValue() override;
|
||||
void* GetEventHandle() override { return m_eventHandle; }
|
||||
|
||||
ID3D12Fence* GetFence() const { return m_fence.Get(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user