diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-11-09 01:56:44 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-11-09 01:56:44 +0000 |
| commit | b360883a60ddbb169a9184428966db82b6dd96e9 (patch) | |
| tree | b62cd9d946744d576cb1ab01f22c8e9aa230817b /Graphics/GraphicsEngineVulkan | |
| parent | Fixed gcc build error (diff) | |
| download | DiligentCore-b360883a60ddbb169a9184428966db82b6dd96e9.tar.gz DiligentCore-b360883a60ddbb169a9184428966db82b6dd96e9.zip | |
Added APIVersion member to EngineCreateInfo struct (API Version 240040)
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp index d1219207..496eb67f 100644 --- a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp +++ b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp @@ -87,6 +87,9 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk(const EngineVkCreateInfo& _E IRenderDevice** ppDevice, IDeviceContext** ppContexts) { + if (_EngineCI.APIVersion != DILIGENT_API_VERSION) + LOG_ERROR_AND_THROW("Diligent Engine runtime (", _EngineCI.APIVersion, ") is not compatible with the client API version (", DILIGENT_API_VERSION, ")"); + VERIFY( ppDevice && ppContexts, "Null pointer provided" ); if( !ppDevice || !ppContexts ) return; @@ -241,6 +244,9 @@ void EngineFactoryVkImpl::AttachToVulkanDevice(std::shared_ptr<VulkanUtilities:: IRenderDevice** ppDevice, IDeviceContext** ppContexts) { + if (EngineCI.APIVersion != DILIGENT_API_VERSION) + LOG_ERROR_AND_THROW("Diligent Engine runtime (", EngineCI.APIVersion, ") is not compatible with the client API version (", DILIGENT_API_VERSION, ")"); + VERIFY( ppCommandQueues && ppDevice && ppContexts, "Null pointer provided" ); if(!LogicalDevice || !ppCommandQueues || !ppDevice || !ppContexts ) return; |
