static GLFWwindow *win;
static bool redraw_pending;
-static bool vk_enable_layers;
+static bool vk_enable_layers = true;
static int win_w = 800;
static int win_h = 600;
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2;
img_fmt_info.pNext = props->need_export ? &ext_img_fmt_info : 0;
img_fmt_info.format = props->format;
- img_fmt_info.type = get_image_type(props->h, props->depth);
+ img_fmt_info.type = VK_IMAGE_TYPE_2D;
img_fmt_info.tiling = props->tiling;
for (i = 0; i < ARRAY_SIZE(all_flags); i++) {
VkSemaphore frame_done;
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* context */
bool vk_init_ctx(struct vk_ctx *ctx,
uint32_t src_queue_family_index,
uint32_t dst_queue_family_index);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* VK_H */