projects
/
vkray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init flags mechanism
[vkray]
/
src
/
app.c
diff --git
a/src/app.c
b/src/app.c
index
1d97906
..
0dca609
100644
(file)
--- a/
src/app.c
+++ b/
src/app.c
@@
-1,12
+1,20
@@
+#include <stdio.h>
#include <stdlib.h>
#include "app.h"
#include "vk.h"
int app_init(void)
{
#include <stdlib.h>
#include "app.h"
#include "vk.h"
int app_init(void)
{
- if(vk_init() == -1) {
+ unsigned int flags;
+
+ if(vk_init(VKINIT_DEPTH | VKINIT_RAY, &flags) == -1) {
return -1;
}
return -1;
}
+ if(!(flags & VKINIT_RAY)) {
+ fprintf(stderr, "Vulkan raytracing extensions not available\n");
+ /*vk_cleanup();
+ return -1;*/
+ }
return 0;
}
return 0;
}