summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-03 03:47:36 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-03 03:47:36 +0000
commite23d0974b92bf870343f3fdee30294254a62505e (patch)
treebc877888ce0413f30c2b026d1f7a3edfa076a260 /Graphics/GraphicsEngineOpenGL
parentReplaced COMMIT_SHADER_RESOURCES_FLAGS with RESOURCE_STATE_TRANSITION_MODE (diff)
downloadDiligentCore-e23d0974b92bf870343f3fdee30294254a62505e.tar.gz
DiligentCore-e23d0974b92bf870343f3fdee30294254a62505e.zip
Made DeviceContextBase template class little more readable by keeping only two template parameters
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h11
1 files changed, 9 insertions, 2 deletions
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<IDeviceContextGL, BufferGLImpl, TextureBaseGL, PipelineStateGLImpl>
+class DeviceContextGLImpl final : public DeviceContextBase<IDeviceContextGL, DeviceContextGLImplTraits>
{
public:
- using TDeviceContextBase = DeviceContextBase<IDeviceContextGL, BufferGLImpl, TextureBaseGL, PipelineStateGLImpl>;
+ using TDeviceContextBase = DeviceContextBase<IDeviceContextGL, DeviceContextGLImplTraits>;
DeviceContextGLImpl( IReferenceCounters *pRefCounters, class RenderDeviceGLImpl *pDeviceGL, bool bIsDeferred );