summaryrefslogtreecommitdiffstatsci
path: root/samples/tests/surface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samples/tests/surface.cpp')
-rw-r--r--samples/tests/surface.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/samples/tests/surface.cpp b/samples/tests/surface.cpp
new file mode 100644
index 0000000..e82d176
--- /dev/null
+++ b/samples/tests/surface.cpp
@@ -0,0 +1,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);
+}
+