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/GraphicsEngineVulkan/include/DeviceContextVkImpl.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h index 5de53766..dbc8226c 100644 --- a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h +++ b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h @@ -46,11 +46,18 @@ namespace Diligent { +struct DeviceContextVkImplTraits +{ + using BufferType = BufferVkImpl; + using TextureType = TextureVkImpl; + using PipelineStateType = PipelineStateVkImpl; +}; + /// Implementation of the Diligent::IDeviceContext interface -class DeviceContextVkImpl final : public DeviceContextNextGenBase< DeviceContextBase > +class DeviceContextVkImpl final : public DeviceContextNextGenBase< DeviceContextBase > { public: - using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase >; + using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase >; DeviceContextVkImpl(IReferenceCounters* pRefCounters, class RenderDeviceVkImpl* pDevice, -- cgit v1.2.3