projects
/
vkrt
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extern "C" so that I can also use c++
[vkrt]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
36d26e1
..
af4277c
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-33,7
+33,7
@@
display(void);
static GLFWwindow *win;
static bool redraw_pending;
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;
static int win_w = 800;
static int win_h = 600;
@@
-154,7
+154,7
@@
init(void)
if (!vk_fill_image_props(&vk_core,
win_w, win_h, 1,
1, 1, 1,
if (!vk_fill_image_props(&vk_core,
win_w, win_h, 1,
1, 1, 1,
- VK_FORMAT_D24_UNORM_S8_UINT,
+ VK_FORMAT_D32_SFLOAT_S8_UINT,
VK_IMAGE_TILING_OPTIMAL,
VK_IMAGE_LAYOUT_UNDEFINED,
VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
VK_IMAGE_TILING_OPTIMAL,
VK_IMAGE_LAYOUT_UNDEFINED,
VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,