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/GraphicsEngineD3D11 | |
| 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/GraphicsEngineD3D11')
| -rwxr-xr-x | Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h | 11 |
1 files changed, 9 insertions, 2 deletions
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<IDeviceContextD3D11, BufferD3D11Impl, TextureBaseD3D11, PipelineStateD3D11Impl>
+class DeviceContextD3D11Impl final : public DeviceContextBase<IDeviceContextD3D11, DeviceContextD3D11ImplTraits>
{
public:
- using TDeviceContextBase = DeviceContextBase<IDeviceContextD3D11, BufferD3D11Impl, TextureBaseD3D11, PipelineStateD3D11Impl>;
+ using TDeviceContextBase = DeviceContextBase<IDeviceContextD3D11, DeviceContextD3D11ImplTraits>;
DeviceContextD3D11Impl(IReferenceCounters* pRefCounters,
IMemoryAllocator& Allocator,
|
