From b417b08f59747ddd47a29efbb7128b5c425fdc22 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 3 Jul 2020 21:12:33 +0800 Subject: [PATCH] add VKDevice::GetSwapchainSize() function --- inc/hgl/graph/vulkan/VKDevice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/hgl/graph/vulkan/VKDevice.h b/inc/hgl/graph/vulkan/VKDevice.h index f9b07a32..5533cbc9 100644 --- a/inc/hgl/graph/vulkan/VKDevice.h +++ b/inc/hgl/graph/vulkan/VKDevice.h @@ -64,6 +64,8 @@ public: public: + const VkExtent2D & GetSwapchainSize ()const {return swapchain->extent;} + bool Resize (const VkExtent2D &); bool Resize (const uint32_t &w,const uint32_t &h) {