From 82d456ffb4dde152d9ed6a5c2ffb63202e8441a7 Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 17 Dec 2019 09:50:06 -0800 Subject: Fixed Core API test crash on the server by dynamically loading vulkan entry points --- Graphics/GraphicsEngineVulkan/include/RenderDeviceVkImpl.h | 3 +++ Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'Graphics/GraphicsEngineVulkan') 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; -- cgit v1.2.3