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/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineD3D11') diff --git a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h index 8a3f3c02..e96379dd 100755 --- a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h +++ b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h @@ -40,11 +40,18 @@ namespace Diligent { +struct DeviceContextD3D11ImplTraits +{ + using BufferType = BufferD3D11Impl; + using TextureType = TextureBaseD3D11; + using PipelineStateType = PipelineStateD3D11Impl; +}; + /// Implementation of the Diligent::IDeviceContextD3D11 interface -class DeviceContextD3D11Impl final : public DeviceContextBase +class DeviceContextD3D11Impl final : public DeviceContextBase { public: - using TDeviceContextBase = DeviceContextBase; + using TDeviceContextBase = DeviceContextBase; DeviceContextD3D11Impl(IReferenceCounters* pRefCounters, IMemoryAllocator& Allocator, -- cgit v1.2.3