aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.h
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-12-10 08:51:10 -0700
committerJon Ashburn <jon@lunarg.com>2015-12-10 09:39:08 -0700
commit46d8a8c820810e7854d9467ac7ebbe1ccaeb722e (patch)
tree4e34e5ef3f090bb56c00d69e6e93d566f06a7ccc /loader/loader.h
parent1018dba583a2a2ab2db6bd6b4d596e4790a43149 (diff)
downloadusermoji-46d8a8c820810e7854d9467ac7ebbe1ccaeb722e.tar.xz
loader: Convert ext list helper functions to generic form
This allows future changes where the device and instance ext lists are different types.
Diffstat (limited to 'loader/loader.h')
-rw-r--r--loader/loader.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/loader/loader.h b/loader/loader.h
index 0c70f591..6eb7327f 100644
--- a/loader/loader.h
+++ b/loader/loader.h
@@ -63,6 +63,14 @@ enum layer_type {
VK_LAYER_TYPE_GLOBAL_IMPLICIT = 0xc, // both instance and device layer, bitwise
};
+// form of all dynamic lists/arrays
+// only the list element should be changed
+struct loader_generic_list {
+ size_t capacity;
+ uint32_t count;
+ void *list;
+};
+
struct loader_extension_list {
size_t capacity;
uint32_t count;
@@ -415,9 +423,9 @@ VkResult loader_add_to_ext_list(
struct loader_extension_list *ext_list,
uint32_t prop_list_count,
const VkExtensionProperties *props);
-void loader_destroy_ext_list(
+void loader_destroy_generic_list(
const struct loader_instance *inst,
- struct loader_extension_list *ext_info);
+ struct loader_generic_list *list);
void loader_delete_layer_properties(
const struct loader_instance *inst,
struct loader_layer_list *layer_list);