summaryrefslogtreecommitdiffstatsci
path: root/samples/tests/surface.cpp
blob: e82d17616a4bca6222db172a7330ef70d8b0230c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "VkvgTest.hpp"
TEST(surface_create_destroy_multi_512) {
    VkvgSurface* surfs = (VkvgSurface*)malloc(sizeof(VkvgSurface) * test->app->testSize);
    for (uint32_t i = 0; i < test->app->testSize; i++)
        surfs[i] = vkvg_surface_create(test->device, 512, 512);
    for (uint32_t i = 0; i < test->app->testSize; i++)
        vkvg_surface_destroy(surfs[i]);
    free(surfs);
}

TEST(surface_create_destroy_single_512) {
    VkvgSurface s = vkvg_surface_create(test->device, 512, 512);
    vkvg_surface_destroy(s);
}