diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 03:47:36 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 03:47:36 +0000 |
| commit | e23d0974b92bf870343f3fdee30294254a62505e (patch) | |
| tree | bc877888ce0413f30c2b026d1f7a3edfa076a260 /Graphics/GraphicsEngineD3D12 | |
| parent | Replaced COMMIT_SHADER_RESOURCES_FLAGS with RESOURCE_STATE_TRANSITION_MODE (diff) | |
| download | DiligentCore-e23d0974b92bf870343f3fdee30294254a62505e.tar.gz DiligentCore-e23d0974b92bf870343f3fdee30294254a62505e.zip | |
Made DeviceContextBase template class little more readable by keeping only two template parameters
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h | 11 |
1 files changed, 9 insertions, 2 deletions
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<IDeviceContextD3D12, BufferD3D12Impl, TextureD3D12Impl, PipelineStateD3D12Impl> > +class DeviceContextD3D12Impl final : public DeviceContextNextGenBase< DeviceContextBase<IDeviceContextD3D12, DeviceContextD3D12ImplTraits> > { public: - using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase<IDeviceContextD3D12, BufferD3D12Impl, TextureD3D12Impl, PipelineStateD3D12Impl> >; + using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase<IDeviceContextD3D12, DeviceContextD3D12ImplTraits> >; DeviceContextD3D12Impl(IReferenceCounters* pRefCounters, class RenderDeviceD3D12Impl* pDevice, |
