Fix image size and semaphore issues
There was an issue with image size for depth and color attachment, which has been fixed. Also, finally found and issue with semaphore indexing Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
This commit is contained in:
@@ -21,14 +21,18 @@ static rse_err_t create_swapchain(struct graphics_context_t* context)
|
||||
{
|
||||
VkSwapchainCreateInfoKHR create_info;
|
||||
VkSurfaceCapabilitiesKHR physical_device_surface_capabilities;
|
||||
rse_err_t status = RSE_ERROR_NO_ERROR;
|
||||
VkBool32 surfaceSupported;
|
||||
VkExtent2D extent = {0};
|
||||
|
||||
vkGetPhysicalDeviceSurfaceCapabilitiesKHR(context->vulkan_handles.physical_device,
|
||||
context->vulkan_handles.surface,
|
||||
&physical_device_surface_capabilities);
|
||||
|
||||
STATUS_CHECK(image_get_extent(context, &extent));
|
||||
|
||||
/* Store extent in global variable, for later use */
|
||||
context->swapchain_data.swapchain_extent = physical_device_surface_capabilities.currentExtent;
|
||||
context->swapchain_data.swapchain_extent = extent;
|
||||
|
||||
/* Check if device supports surface for presentation */
|
||||
vkGetPhysicalDeviceSurfaceSupportKHR(context->vulkan_handles.physical_device,
|
||||
|
||||
Reference in New Issue
Block a user