aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Graves <dustin@lunarg.com>2016-01-26 16:30:22 -0700
committerDustin Graves <dustin@lunarg.com>2016-02-03 15:45:31 -0700
commitcfe5ade618115d634cad69aca085f458720346d2 (patch)
tree1cce3697dacaf2443caf1098d7c3a4c7a9a3f81f
parent8d2d33a1f4d8a2bc7c3aa153154094c6639c0b9f (diff)
downloadusermoji-cfe5ade618115d634cad69aca085f458720346d2.tar.xz
demos/tests: Enable unique_objects layer
Using VK_LAYER_GOOGLE_unique_objects with 'cube --validate' and when running all tests with layers.
-rw-r--r--demos/cube.c16
-rw-r--r--demos/tri.c4
2 files changed, 12 insertions, 8 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 0801bfda..14b360ac 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -2130,17 +2130,19 @@ static void demo_init_vk(struct demo *demo) {
"VK_LAYER_LUNARG_object_tracker", "VK_LAYER_LUNARG_draw_state",
"VK_LAYER_LUNARG_param_checker", "VK_LAYER_LUNARG_swapchain",
"VK_LAYER_LUNARG_device_limits", "VK_LAYER_LUNARG_image",
+ "VK_LAYER_GOOGLE_unique_objects",
};
demo->device_validation_layers[0] = "VK_LAYER_LUNARG_threading";
demo->device_validation_layers[1] = "VK_LAYER_LUNARG_mem_tracker";
- demo->device_validation_layers[2] = "VK_LAYER_LUNARG_object_tracker",
- demo->device_validation_layers[3] = "VK_LAYER_LUNARG_draw_state",
- demo->device_validation_layers[4] = "VK_LAYER_LUNARG_param_checker",
- demo->device_validation_layers[5] = "VK_LAYER_LUNARG_swapchain",
- demo->device_validation_layers[6] = "VK_LAYER_LUNARG_device_limits",
- demo->device_validation_layers[7] = "VK_LAYER_LUNARG_image",
- device_validation_layer_count = 8;
+ demo->device_validation_layers[2] = "VK_LAYER_LUNARG_object_tracker";
+ demo->device_validation_layers[3] = "VK_LAYER_LUNARG_draw_state";
+ demo->device_validation_layers[4] = "VK_LAYER_LUNARG_param_checker";
+ demo->device_validation_layers[5] = "VK_LAYER_LUNARG_swapchain";
+ demo->device_validation_layers[6] = "VK_LAYER_LUNARG_device_limits";
+ demo->device_validation_layers[7] = "VK_LAYER_LUNARG_image";
+ demo->device_validation_layers[8] = "VK_LAYER_GOOGLE_unique_objects";
+ device_validation_layer_count = 9;
/* Look for validation layers */
VkBool32 validation_found = 0;
diff --git a/demos/tri.c b/demos/tri.c
index 990a470e..b7cc2e05 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -1739,10 +1739,12 @@ static void demo_init_vk(struct demo *demo) {
char *instance_validation_layers[] = {
"VK_LAYER_LUNARG_mem_tracker",
+ "VK_LAYER_GOOGLE_unique_objects",
};
demo->device_validation_layers[0] = "VK_LAYER_LUNARG_mem_tracker";
- device_validation_layer_count = 1;
+ demo->device_validation_layers[1] = "VK_LAYER_GOOGLE_unique_objects";
+ device_validation_layer_count = 2;
/* Look for validation layers */
VkBool32 validation_found = 0;