summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
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;