diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-03-04 08:16:25 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:14 +0000 |
| commit | 5d11bc3700658755a37eb0add40deb4f167c2084 (patch) | |
| tree | 07f506d19191f59f4b590f28f48814118f8dd531 /Graphics/GraphicsEngineD3DBase | |
| parent | GL backend: some cosmetic code changes (diff) | |
| download | DiligentCore-5d11bc3700658755a37eb0add40deb4f167c2084.tar.gz DiligentCore-5d11bc3700658755a37eb0add40deb4f167c2084.zip | |
Unified device object creation in D3D12, Vulkan and OpenGL
Diffstat (limited to 'Graphics/GraphicsEngineD3DBase')
| -rw-r--r-- | Graphics/GraphicsEngineD3DBase/include/RenderDeviceD3DBase.hpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Graphics/GraphicsEngineD3DBase/include/RenderDeviceD3DBase.hpp b/Graphics/GraphicsEngineD3DBase/include/RenderDeviceD3DBase.hpp index 504e4761..1f245a6d 100644 --- a/Graphics/GraphicsEngineD3DBase/include/RenderDeviceD3DBase.hpp +++ b/Graphics/GraphicsEngineD3DBase/include/RenderDeviceD3DBase.hpp @@ -39,16 +39,15 @@ namespace Diligent /// Base implementation of a D3D render device -template <typename BaseInterface> -class RenderDeviceD3DBase : public RenderDeviceBase<BaseInterface> +template <typename RenderDeviceImplTraits> +class RenderDeviceD3DBase : public RenderDeviceBase<RenderDeviceImplTraits> { public: - RenderDeviceD3DBase(IReferenceCounters* pRefCounters, - IMemoryAllocator& RawMemAllocator, - IEngineFactory* pEngineFactory, - Uint32 NumDeferredContexts, - const DeviceObjectSizes& ObjectSizes) : - RenderDeviceBase<BaseInterface>{pRefCounters, RawMemAllocator, pEngineFactory, NumDeferredContexts, ObjectSizes} + RenderDeviceD3DBase(IReferenceCounters* pRefCounters, + IMemoryAllocator& RawMemAllocator, + IEngineFactory* pEngineFactory, + Uint32 NumDeferredContexts) : + RenderDeviceBase<RenderDeviceImplTraits>{pRefCounters, RawMemAllocator, pEngineFactory, NumDeferredContexts} { // Flag texture formats always supported in D3D11 and D3D12 |
