/***************/
void init_test (uint32_t width, uint32_t height){
- e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_MAILBOX_KHR, width, height);
+ e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_FIFO_KHR, width, height);
VkhPresenter r = e->renderer;
vkengine_set_key_callback (e, key_callback);
vkengine_set_mouse_but_callback(e, mouse_button_callback);
void perform_test (void(*testfunc)(void), const char *testName, uint32_t width, uint32_t height) {
//dumpLayerExts();
- e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_MAILBOX_KHR, width, height);
+ e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_FIFO_KHR, width, height);
VkhPresenter r = e->renderer;
vkengine_set_key_callback (e, key_callback);
vkengine_set_mouse_but_callback(e, mouse_button_callback);
#endif
- double start_time, stop_time, run_time, run_total = 0.0, min_run_time = -1, max_run_time;
+ double start_time = 0.0, stop_time = 0.0, run_time = 0.0, run_total = 0.0, min_run_time = -1, max_run_time = 0.0;
double* run_time_values = (double*)malloc(iterations*sizeof(double));
int i = 0;
uint32_t qCount = 0;
float qPriorities[] = {0.0};
- VkDeviceQueueCreateInfo pQueueInfos[3];
+ VkDeviceQueueCreateInfo pQueueInfos[] = { {0},{0},{0} };
if (vkh_phyinfo_create_presentable_queues (pi, 1, qPriorities, &pQueueInfos[qCount]))
qCount++;
if (vkh_phyinfo_create_compute_queues (pi, 1, qPriorities, &pQueueInfos[qCount]))