From e23d0974b92bf870343f3fdee30294254a62505e Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 2 Dec 2018 19:47:36 -0800 Subject: Made DeviceContextBase template class little more readable by keeping only two template parameters --- Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h index a1a36c5c..1d3be69b 100644 --- a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h +++ b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h @@ -35,11 +35,18 @@ namespace Diligent { +struct DeviceContextGLImplTraits +{ + using BufferType = BufferGLImpl; + using TextureType = TextureBaseGL; + using PipelineStateType = PipelineStateGLImpl; +}; + /// Implementation of the Diligent::IDeviceContextGL interface -class DeviceContextGLImpl final : public DeviceContextBase +class DeviceContextGLImpl final : public DeviceContextBase { public: - using TDeviceContextBase = DeviceContextBase; + using TDeviceContextBase = DeviceContextBase; DeviceContextGLImpl( IReferenceCounters *pRefCounters, class RenderDeviceGLImpl *pDeviceGL, bool bIsDeferred ); -- cgit v1.2.3