Let platforms override the sizing of Vulkan swapchain and window

This commit is contained in:
Pedro J. Estébanez 2022-08-25 13:30:33 +02:00
parent 5d78ab4388
commit 994d2faf97
2 changed files with 21 additions and 26 deletions

View file

@ -266,6 +266,8 @@ protected:
Error _get_preferred_validation_layers(uint32_t *count, const char *const **names);
virtual VkExtent2D _compute_swapchain_extent(const VkSurfaceCapabilitiesKHR &p_surf_capabilities, int *p_window_width, int *p_window_height) const;
public:
// Extension calls.
VkResult vkCreateRenderPass2KHR(VkDevice device, const VkRenderPassCreateInfo2 *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkRenderPass *pRenderPass);