simplification/taylorization and fix
[vulkan-misc.git] / 2d / blit / app_state.c
blob80969416fa5cbc1ae754fbcff904e2226641ef03
1 #ifndef APP_STATE_C
2 #define APP_STATE_C
3 /*
4 * this is public domain without any warranties of any kind
5 * Sylvain BERTRAND
6 */
7 /* XXX: KEEP AN EYE ON ABBREVIATIONS, ALWAYS */
8 #include <stddef.h>
9 #include <xcb.h>
10 #include "app_core_types.h"
11 #include "nyanvk/types.h"
12 #include "app_state_types.h"
13 /*----------------------------------------------------------------------------*/
14 #include "namespace/app_state_types.h"
15 #include "namespace/app_state.c"
16 /*----------------------------------------------------------------------------*/
17 static u8 state_g;
18 static bool do_render_g;
19 static u32 fill_texel_g;
20 /*----------------------------------------------------------------------------*/
21 static void *instance_g;
22 static struct surf_t surf_g;
23 /*============================================================================*/
24 /* tmp storage */
25 static struct tmp_phydev_t tmp_phydevs_g[tmp_phydevs_n_max];
26 static u32 tmp_phydevs_n_g;
27 static struct vk_surf_caps_t tmp_surf_caps_g;
28 static u32 tmp_present_modes_g[tmp_present_modes_n_max];
29 static u32 tmp_present_modes_n_g;
30 static struct vk_mem_rqmts_t tmp_mem_rqmts_g[swpchn_imgs_n_max];
31 #define CLEANUP
32 #include "namespace/app_state_types.h"
33 #include "namespace/app_state.c"
34 #undef CLEANUP
35 #endif /* APP_STATE_C */