diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-11-10 06:17:46 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-11-10 06:17:46 +0000 |
| commit | 9e62ec0d4b9c7ea9d6fc3d19b9d29481dffb697c (patch) | |
| tree | f9f26c569259ec3b83c9b19dbe0c40f472243ce6 /Graphics/GraphicsEngineOpenGL | |
| parent | Allowed swap chains without the depth buffer (diff) | |
| download | DiligentCore-9e62ec0d4b9c7ea9d6fc3d19b9d29481dffb697c.tar.gz DiligentCore-9e62ec0d4b9c7ea9d6fc3d19b9d29481dffb697c.zip | |
Added 'ResolveTextureSubresource' device context command (API Version 240041) (not yet implemented in OpenGL backend)
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h | 5 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h index 7eb69f18..70265a11 100644 --- a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h +++ b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h @@ -176,6 +176,11 @@ public: /// Implementation of IDeviceContext::TransitionResourceStates() in OpenGL backend. virtual void TransitionResourceStates(Uint32 BarrierCount, StateTransitionDesc* pResourceBarriers)override final; + /// Implementation of IDeviceContext::ResolveTextureSubresource() in OpenGL backend. + virtual void ResolveTextureSubresource(ITexture* pSrcTexture, + ITexture* pDstTexture, + const ResolveTextureSubresourceAttribs& ResolveAttribs)override final; + /// Implementation of IDeviceContext::FinishCommandList() in OpenGL backend. virtual void FinishCommandList(class ICommandList** ppCommandList)override final; diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index f85bd454..9358ad1e 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -1132,4 +1132,12 @@ namespace Diligent { } + + void DeviceContextGLImpl::ResolveTextureSubresource(ITexture* pSrcTexture, + ITexture* pDstTexture, + const ResolveTextureSubresourceAttribs& ResolveAttribs) + { + TDeviceContextBase::ResolveTextureSubresource(pSrcTexture, pDstTexture, ResolveAttribs); + + } } |
