1 #ifndef APP_STATE_TYPES_H
2 #define APP_STATE_TYPES_H
4 * this is public domain without any warranties of any kind
7 /* XXX: KEEP AN EYE ON ABBREVIATIONS, ALWAYS */
10 #include "app_core_types.h"
11 #include "nyanvk/types.h"
12 #include "nyanvk/syms_dev.h"
13 /* this is the default initial cpu rendering size */
14 #define APP_CPU_IMG_WIDTH 50
15 #define APP_CPU_IMG_HEIGHT 50
16 #define APP_WIN_WIDTH 100
17 #define APP_WIN_HEIGHT 100
18 /*----------------------------------------------------------------------------*/
19 #include "namespace/app_state_types.h"
20 /*----------------------------------------------------------------------------*/
34 void *imgs
[swpchn_imgs_n_max
];
41 struct vk_surf_texel_mem_blk_conf_core_t
42 selected_texel_mem_blk_conf_core
;
44 struct vk_mem_type_t mem_types
[VK_MEM_TYPES_N_MAX
];
49 struct vk_subrsrc_layout_t layout
;
50 void *dev_mem
; /* TODO: we should use 1 big dev_mem chunk */
55 sem_acquire_img_done
= 0,
62 struct phydev_t phydev
;
63 struct swpchn_t swpchn
;
66 void *cbs
[swpchn_imgs_n_max
];
68 struct app_cpu_img_t cpu_imgs
[swpchn_imgs_n_max
];
69 VK_DEV_SYMS_FULL
/* should cherry pick the syms we use */
76 /*============================================================================*/
79 tmp_phydevs_n_max
= 16,
80 tmp_phydev_q_fams_n_max
= 16,
81 tmp_present_modes_n_max
= 16
87 struct vk_q_fam_props_t q_fams
[tmp_phydev_q_fams_n_max
];
89 struct vk_phydev_mem_props_t mem_props
;
90 bool q_fams_surf_support
[tmp_phydev_q_fams_n_max
];
92 /*----------------------------------------------------------------------------*/
94 #include "namespace/app_state_types.h"
96 /*----------------------------------------------------------------------------*/
97 #endif /* APP_STATE_TYPES_H */