summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-17 17:50:06 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-17 17:50:06 +0000
commit82d456ffb4dde152d9ed6a5c2ffb63202e8441a7 (patch)
treeb33ba9e12addc503dee3aafc7c2d436b99bdee63 /Graphics/GraphicsEngineVulkan
parentEnabled draw command reference in Vulkan (diff)
downloadDiligentCore-82d456ffb4dde152d9ed6a5c2ffb63202e8441a7.tar.gz
DiligentCore-82d456ffb4dde152d9ed6a5c2ffb63202e8441a7.zip
Fixed Core API test crash on the server by dynamically loading vulkan entry points
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/include/RenderDeviceVkImpl.h3
-rw-r--r--Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/RenderDeviceVkImpl.h b/Graphics/GraphicsEngineVulkan/include/RenderDeviceVkImpl.h
index 8fd3c38a..e490f368 100644
--- a/Graphics/GraphicsEngineVulkan/include/RenderDeviceVkImpl.h
+++ b/Graphics/GraphicsEngineVulkan/include/RenderDeviceVkImpl.h
@@ -94,6 +94,9 @@ public:
/// Implementation of IRenderDeviceVk::GetVkPhysicalDevice().
virtual VkPhysicalDevice GetVkPhysicalDevice() override final { return m_PhysicalDevice->GetVkDeviceHandle(); }
+ /// Implementation of IRenderDeviceVk::GetVkInstance().
+ virtual VkInstance GetVkInstance() override final { return m_VulkanInstance->GetVkInstance(); }
+
/// Implementation of IRenderDeviceVk::CreateTextureFromVulkanImage().
virtual void CreateTextureFromVulkanImage(VkImage vkImage, const TextureDesc& TexDesc, RESOURCE_STATE InitialState, ITexture** ppTexture) override final;
diff --git a/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h b/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h
index bf216af3..1d60316a 100644
--- a/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h
+++ b/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h
@@ -45,6 +45,9 @@ public:
/// Returns physical Vulkan device
virtual VkPhysicalDevice GetVkPhysicalDevice() = 0;
+ /// Returns Vulkan instance
+ virtual VkInstance GetVkInstance() = 0;
+
/// Returns the fence value that will be signaled by the GPU command queue next
virtual Uint64 GetNextFenceValue(Uint32 QueueIndex) = 0;