diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-07 04:50:24 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-07 04:50:24 +0000 |
| commit | b5d6570531da747cbb6ae578b1ded175ec10a1ce (patch) | |
| tree | c9cc690bd88027018d2eb39b0a7b9fbcf0a49cf7 /Graphics/GraphicsEngineD3DBase | |
| parent | Fixed issue with GLContextWindows (diff) | |
| download | DiligentCore-b5d6570531da747cbb6ae578b1ded175ec10a1ce.tar.gz DiligentCore-b5d6570531da747cbb6ae578b1ded175ec10a1ce.zip | |
Made engine factory interfaces derived from IObject (fixed https://github.com/DiligentGraphics/DiligentCore/issues/72)
Diffstat (limited to 'Graphics/GraphicsEngineD3DBase')
| -rw-r--r-- | Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h b/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h index 61ef2eda..ea0de389 100644 --- a/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h +++ b/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h @@ -24,6 +24,7 @@ #pragma once #include "DXGITypeConversions.h" +#include "EngineFactoryBase.h" /// \file /// Implementation of the Diligent::EngineFactoryD3DBase template class @@ -32,9 +33,15 @@ namespace Diligent { template<typename BaseInterface, DeviceType DevType> -class EngineFactoryD3DBase : public BaseInterface +class EngineFactoryD3DBase : public EngineFactoryBase<BaseInterface> { public: + using TEngineFactoryBase = EngineFactoryBase<BaseInterface>; + + EngineFactoryD3DBase(const INTERFACE_ID& FactoryIID) : + TEngineFactoryBase(FactoryIID) + {} + /// Enumerates hardware adapters available on this machine /// \param [in,out] NumAdapters - Number of adapters. If Adapters is null, this value |
