+ /* create depth attachment (for the moment we are going to use this
+ * for all images */
+ if (!vk_fill_image_props(&vk_core,
+ win_w, win_h, 1,
+ 1, 1, 1,
+ VK_FORMAT_D24_UNORM_S8_UINT,
+ VK_IMAGE_TILING_OPTIMAL,
+ VK_IMAGE_LAYOUT_UNDEFINED,
+ VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
+ false, &vk_depth_att_props)) {
+ fprintf(stderr, "Unsupported depth image properties\n");
+ return false;
+ }
+ if (!vk_create_image(&vk_core, &vk_depth_att_props, &vk_depth_att.obj)) {
+ fprintf(stderr, "Failed to create depth attachment.\n");
+ return false;
+ }
+