From b875435c82aa5efbea55ee17719c4a57b171a811 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 31 Jul 2020 23:31:05 -0700 Subject: Base implementation of BeginRenderPass/NextSubpass/EndRenderPass methods --- Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp | 4 ++++ Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 3 +++ 2 files changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp index 8b2651fd..ad9ff03b 100644 --- a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp +++ b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp @@ -35,6 +35,8 @@ #include "BufferGLImpl.hpp" #include "TextureBaseGL.hpp" #include "QueryGLImpl.hpp" +#include "FramebufferGLImpl.hpp" +#include "RenderPassGLImpl.hpp" #include "PipelineStateGLImpl.hpp" namespace Diligent @@ -47,6 +49,8 @@ struct DeviceContextGLImplTraits using PipelineStateType = PipelineStateGLImpl; using DeviceType = RenderDeviceGLImpl; using QueryType = QueryGLImpl; + using FramebufferType = FramebufferGLImpl; + using RenderPassType = RenderPassGLImpl; }; /// Device context implementation in OpenGL backend. diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index bee081fb..c585137b 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -405,16 +405,19 @@ void DeviceContextGLImpl::ResetRenderTargets() void DeviceContextGLImpl::BeginRenderPass(const BeginRenderPassAttribs& Attribs) { + TDeviceContextBase::BeginRenderPass(Attribs); UNEXPECTED("Method not implemented"); } void DeviceContextGLImpl::NextSubpass() { + TDeviceContextBase::NextSubpass(); UNEXPECTED("Method not implemented"); } void DeviceContextGLImpl::EndRenderPass() { + TDeviceContextBase::EndRenderPass(); UNEXPECTED("Method not implemented"); } -- cgit v1.2.3