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/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h index 754427f5..834bb54e 100644 --- a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h +++ b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h @@ -40,11 +40,18 @@ namespace Diligent { +struct DeviceContextD3D12ImplTraits +{ + using BufferType = BufferD3D12Impl; + using TextureType = TextureD3D12Impl; + using PipelineStateType = PipelineStateD3D12Impl; +}; + /// Implementation of the Diligent::IDeviceContext interface -class DeviceContextD3D12Impl final : public DeviceContextNextGenBase< DeviceContextBase > +class DeviceContextD3D12Impl final : public DeviceContextNextGenBase< DeviceContextBase > { public: - using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase >; + using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase >; DeviceContextD3D12Impl(IReferenceCounters* pRefCounters, class RenderDeviceD3D12Impl* pDevice, -- cgit v1.2.3