summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-03 03:47:36 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-03 03:47:36 +0000
commite23d0974b92bf870343f3fdee30294254a62505e (patch)
treebc877888ce0413f30c2b026d1f7a3edfa076a260 /Graphics/GraphicsEngineVulkan
parentReplaced COMMIT_SHADER_RESOURCES_FLAGS with RESOURCE_STATE_TRANSITION_MODE (diff)
downloadDiligentCore-e23d0974b92bf870343f3fdee30294254a62505e.tar.gz
DiligentCore-e23d0974b92bf870343f3fdee30294254a62505e.zip
Made DeviceContextBase template class little more readable by keeping only two template parameters
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h11
1 files changed, 9 insertions, 2 deletions
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<IDeviceContextVk, BufferVkImpl, TextureVkImpl, PipelineStateVkImpl> >
+class DeviceContextVkImpl final : public DeviceContextNextGenBase< DeviceContextBase<IDeviceContextVk, DeviceContextVkImplTraits> >
{
public:
- using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase<IDeviceContextVk, BufferVkImpl, TextureVkImpl, PipelineStateVkImpl> >;
+ using TDeviceContextBase = DeviceContextNextGenBase< DeviceContextBase<IDeviceContextVk, DeviceContextVkImplTraits> >;
DeviceContextVkImpl(IReferenceCounters* pRefCounters,
class RenderDeviceVkImpl* pDevice,