From bbb5cdcf409f5d754bcd18828a80e71b4fd7ebd5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 7 Aug 2023 08:42:53 +0200 Subject: [PATCH] vulkan/render_pass: add common vkGetRenderingAreaGranularityKHR() Signed-off-by: Samuel Pitoiset Part-of: --- src/vulkan/runtime/vk_render_pass.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vulkan/runtime/vk_render_pass.c b/src/vulkan/runtime/vk_render_pass.c index f096dfd1693..bc1ae993091 100644 --- a/src/vulkan/runtime/vk_render_pass.c +++ b/src/vulkan/runtime/vk_render_pass.c @@ -1058,6 +1058,14 @@ VKAPI_ATTR void VKAPI_CALL vk_common_GetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D *pGranularity) +{ + *pGranularity = (VkExtent2D){1, 1}; +} + +VKAPI_ATTR void VKAPI_CALL +vk_common_GetRenderingAreaGranularityKHR( + VkDevice _device, const VkRenderingAreaInfoKHR *pRenderingAreaInfo, + VkExtent2D *pGranularity) { *pGranularity = (VkExtent2D) { 1, 1 }; }