summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineNextGenBase
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-06 15:49:17 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-06 15:49:17 +0000
commit696a3cbb5a5f30d2f5000c0db90125d614ea09ca (patch)
treef1c03f120f1cccfa94a583801179212d32d20711 /Graphics/GraphicsEngineNextGenBase
parentAdded API info query (diff)
downloadDiligentCore-696a3cbb5a5f30d2f5000c0db90125d614ea09ca.tar.gz
DiligentCore-696a3cbb5a5f30d2f5000c0db90125d614ea09ca.zip
Made IShaderSourceInputStreamFactory derived from IObject (upgraded API Version to 240021)
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
-rw-r--r--Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h39
1 files changed, 12 insertions, 27 deletions
diff --git a/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h b/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h
index c2022c2a..10e2baeb 100644
--- a/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h
+++ b/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h
@@ -26,6 +26,7 @@
#include <vector>
#include <mutex>
+#include "EngineFactory.h"
#include "Atomics.h"
#include "BasicTypes.h"
#include "ReferenceCounters.h"
@@ -43,33 +44,17 @@ template<class TBase, typename CommandQueueType>
class RenderDeviceNextGenBase : public TBase
{
public:
- RenderDeviceNextGenBase(IReferenceCounters* pRefCounters,
- IMemoryAllocator& RawMemAllocator,
- size_t CmdQueueCount,
- CommandQueueType** Queues,
- Uint32 NumDeferredContexts,
- size_t TextureObjSize,
- size_t TexViewObjSize,
- size_t BufferObjSize,
- size_t BuffViewObjSize,
- size_t ShaderObjSize,
- size_t SamplerObjSize,
- size_t PSOSize,
- size_t SRBSize,
- size_t FenceSize) :
- TBase(pRefCounters,
- RawMemAllocator,
- NumDeferredContexts,
- TextureObjSize,
- TexViewObjSize,
- BufferObjSize,
- BuffViewObjSize,
- ShaderObjSize,
- SamplerObjSize,
- PSOSize,
- SRBSize,
- FenceSize),
- m_CmdQueueCount(CmdQueueCount)
+ using typename TBase::DeviceObjectSizes;
+
+ RenderDeviceNextGenBase(IReferenceCounters* pRefCounters,
+ IMemoryAllocator& RawMemAllocator,
+ IEngineFactory* pEngineFactory,
+ size_t CmdQueueCount,
+ CommandQueueType** Queues,
+ Uint32 NumDeferredContexts,
+ const DeviceObjectSizes& ObjectSizes) :
+ TBase (pRefCounters, RawMemAllocator, pEngineFactory, NumDeferredContexts, ObjectSizes),
+ m_CmdQueueCount (CmdQueueCount)
{
m_CommandQueues = reinterpret_cast<CommandQueue*>(ALLOCATE(this->m_RawMemAllocator, "Raw memory for the device command/release queues", sizeof(CommandQueue)*m_CmdQueueCount));
for(size_t q=0; q < m_CmdQueueCount; ++q)