diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-13 01:56:54 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-13 01:56:54 +0000 |
| commit | ff70b9f06e9cec2cb718b59c17be3081fbc678c1 (patch) | |
| tree | cf872f1daf29f5ed7c5c362d284e0267278b4e67 /Graphics/GraphicsEngineD3D12 | |
| parent | Fixed Metal backend build error (diff) | |
| download | DiligentCore-ff70b9f06e9cec2cb718b59c17be3081fbc678c1.tar.gz DiligentCore-ff70b9f06e9cec2cb718b59c17be3081fbc678c1.zip | |
Made ICommandQueue{D3D12/Vk}::GetNextFenceValue method constant
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/include/CommandQueueD3D12Impl.h | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/interface/CommandQueueD3D12.h | 4 |
2 files changed, 3 insertions, 3 deletions
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 |
