From c8a2291bcf12adde60c42292903005b996b7a499 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 13 Mar 2021 18:42:10 -0800 Subject: Reworked CommandListBase to use EngineImplTraits like the rest of the base classes --- Graphics/GraphicsEngine/include/CommandListBase.hpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/CommandListBase.hpp b/Graphics/GraphicsEngine/include/CommandListBase.hpp index 0d4cea78..3dc83c08 100644 --- a/Graphics/GraphicsEngine/include/CommandListBase.hpp +++ b/Graphics/GraphicsEngine/include/CommandListBase.hpp @@ -43,15 +43,17 @@ struct CommandListDesc : public DeviceObjectAttribs /// Template class implementing base functionality of the command list object. -/// \tparam BaseInterface - Base interface that this class will inheret -/// (Diligent::ICommandListD3D11, Diligent::ICommandListD3D12 or Diligent::ICommandListVk). -/// \tparam RenderDeviceImplType - Type of the render device implementation -/// (Diligent::RenderDeviceD3D11Impl, Diligent::RenderDeviceD3D12Impl, -/// Diligent::RenderDeviceGLImpl, or Diligent::RenderDeviceVkImpl) -template -class CommandListBase : public DeviceObjectBase +/// \tparam EngineImplTraits - Engine implementation type traits. +template +class CommandListBase : public DeviceObjectBase { public: + // Base interface that this class inherits (ICommandList). + using BaseInterface = typename EngineImplTraits::CommandListInterface; + + // Render device implementation type (RenderDeviceD3D12Impl, RenderDeviceVkImpl, etc.). + using RenderDeviceImplType = typename EngineImplTraits::RenderDeviceImplType; + using TDeviceObjectBase = DeviceObjectBase; /// \param pRefCounters - Reference counters object that controls the lifetime of this command list. -- cgit v1.2.3