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/GraphicsEngineVulkan/include/CommandQueueVkImpl.h | 2 +- Graphics/GraphicsEngineVulkan/interface/CommandQueueVk.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/CommandQueueVkImpl.h b/Graphics/GraphicsEngineVulkan/include/CommandQueueVkImpl.h index 0df7d302..1934b351 100644 --- a/Graphics/GraphicsEngineVulkan/include/CommandQueueVkImpl.h +++ b/Graphics/GraphicsEngineVulkan/include/CommandQueueVkImpl.h @@ -55,7 +55,7 @@ public: virtual void QueryInterface(const INTERFACE_ID& IID, IObject** ppInterface) override final; /// Implementation of ICommandQueueVk::GetNextFenceValue(). - virtual Uint64 GetNextFenceValue() override final { return m_NextFenceValue; } + virtual Uint64 GetNextFenceValue() const override final { return m_NextFenceValue; } /// Implementation of ICommandQueueVk::Submit(). virtual Uint64 Submit(VkCommandBuffer cmdBuffer) override final; diff --git a/Graphics/GraphicsEngineVulkan/interface/CommandQueueVk.h b/Graphics/GraphicsEngineVulkan/interface/CommandQueueVk.h index 9f8216e9..b4314d33 100644 --- a/Graphics/GraphicsEngineVulkan/interface/CommandQueueVk.h +++ b/Graphics/GraphicsEngineVulkan/interface/CommandQueueVk.h @@ -40,11 +40,11 @@ static constexpr INTERFACE_ID IID_CommandQueueVk = {0x9fbf582f, 0x3069, 0x41b9, {0xac, 0x5, 0x34, 0x4d, 0x5a, 0xf5, 0xce, 0x8c}}; /// Command queue interface -class ICommandQueueVk : public Diligent::IObject +class ICommandQueueVk : public IObject { public: /// Returns the fence value that will be signaled next time - virtual Uint64 GetNextFenceValue() = 0; + virtual Uint64 GetNextFenceValue() const = 0; /// Submits a given command buffer to the command queue -- cgit v1.2.3