blob: ead2894977ccb3d42e9d80bfb250d2eeac6a82cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "test.h"
void create_destroy_multi_512(){
VkvgSurface* surfs = (VkvgSurface*)malloc(sizeof(VkvgSurface)*test_size);
for (uint32_t i = 0; i < test_size; i++)
surfs[i] = vkvg_surface_create (device, 512, 512);
for (uint32_t i = 0; i < test_size; i++)
vkvg_surface_destroy(surfs[i]);
free(surf);
}
void create_destroy_single_512(){
VkvgSurface s = vkvg_surface_create (device, 512, 512);
vkvg_surface_destroy (s);
}
int main(int argc, char *argv[]) {
PERFORM_TEST (create_destroy_multi_512, argc, argv);
no_test_size = true;
PERFORM_TEST (create_destroy_single_512, argc, argv);
return 0;
}
|