From ff70b9f06e9cec2cb718b59c17be3081fbc678c1 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 12 Jan 2020 17:56:54 -0800 Subject: Made ICommandQueue{D3D12/Vk}::GetNextFenceValue method constant --- Graphics/GraphicsEngineD3D12/include/CommandQueueD3D12Impl.h | 2 +- Graphics/GraphicsEngineD3D12/interface/CommandQueueD3D12.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/include/CommandQueueD3D12Impl.h b/Graphics/GraphicsEngineD3D12/include/CommandQueueD3D12Impl.h index fa9cd9b2..478f5139 100644 --- a/Graphics/GraphicsEngineD3D12/include/CommandQueueD3D12Impl.h +++ b/Graphics/GraphicsEngineD3D12/include/CommandQueueD3D12Impl.h @@ -49,7 +49,7 @@ public: virtual void QueryInterface(const INTERFACE_ID& IID, IObject** ppInterface) override final; // Implementation of ICommandQueueD3D12::GetNextFenceValue(). - virtual Uint64 GetNextFenceValue() override final { return m_NextFenceValue; } + virtual Uint64 GetNextFenceValue() const override final { return m_NextFenceValue; } // Implementation of ICommandQueueD3D12::Submit(). virtual Uint64 Submit(ID3D12GraphicsCommandList* commandList) override final; diff --git a/Graphics/GraphicsEngineD3D12/interface/CommandQueueD3D12.h b/Graphics/GraphicsEngineD3D12/interface/CommandQueueD3D12.h index 5a0de471..e5078cdd 100644 --- a/Graphics/GraphicsEngineD3D12/interface/CommandQueueD3D12.h +++ b/Graphics/GraphicsEngineD3D12/interface/CommandQueueD3D12.h @@ -38,11 +38,11 @@ static constexpr INTERFACE_ID IID_CommandQueueD3D12 = {0xd89693ce, 0xf3f4, 0x44b5, {0xb7, 0xef, 0x24, 0x11, 0x5a, 0xad, 0x8, 0x5e}}; /// Command queue interface -class ICommandQueueD3D12 : public Diligent::IObject +class ICommandQueueD3D12 : public IObject { public: /// Returns the fence value that will be signaled next time - virtual Uint64 GetNextFenceValue() = 0; + virtual Uint64 GetNextFenceValue() const = 0; /// Executes a given command list -- cgit v1.2.3