diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-02-07 20:50:39 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-02-07 20:50:39 +0000 |
| commit | c6c5bb5ed3d4e3296e6f65e4072db5cf8bf2452c (patch) | |
| tree | e8848a7e01b2f576c11e9f9acfee6eca9fcdd681 /Graphics/GraphicsEngineOpenGL | |
| parent | Swap chain Vk: improved presentation mode selection (fixed https://github.com... (diff) | |
| download | DiligentCore-c6c5bb5ed3d4e3296e6f65e4072db5cf8bf2452c.tar.gz DiligentCore-c6c5bb5ed3d4e3296e6f65e4072db5cf8bf2452c.zip | |
Reworked ExecuteCommandList(s) to take multiple command lists instead of one
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp | 5 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp index fae3cba8..c59a968a 100644 --- a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp +++ b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp @@ -226,8 +226,9 @@ public: /// Implementation of IDeviceContext::FinishCommandList() in OpenGL backend. virtual void DILIGENT_CALL_TYPE FinishCommandList(class ICommandList** ppCommandList) override final; - /// Implementation of IDeviceContext::ExecuteCommandList() in OpenGL backend. - virtual void DILIGENT_CALL_TYPE ExecuteCommandList(class ICommandList* pCommandList) override final; + /// Implementation of IDeviceContext::ExecuteCommandLists() in OpenGL backend. + virtual void DILIGENT_CALL_TYPE ExecuteCommandLists(Uint32 NumCommandLists, + ICommandList* const* ppCommandLists) override final; /// Implementation of IDeviceContext::SignalFence() in OpenGL backend. virtual void DILIGENT_CALL_TYPE SignalFence(IFence* pFence, Uint64 Value) override final; diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index d5ca1766..530bc006 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -1282,7 +1282,8 @@ void DeviceContextGLImpl::FinishCommandList(class ICommandList** ppCommandList) LOG_ERROR("Deferred contexts are not supported in OpenGL mode"); } -void DeviceContextGLImpl::ExecuteCommandList(class ICommandList* pCommandList) +void DeviceContextGLImpl::ExecuteCommandLists(Uint32 NumCommandLists, + ICommandList* const* ppCommandLists) { LOG_ERROR("Deferred contexts are not supported in OpenGL mode"); } |
