Searched refs:allocated_count (Results 1 - 3 of 3) sorted by relevance
/third_party/vulkan-loader/loader/ |
H A D | loader.h | 107 // Allocate a loader_string_list with enough space for allocated_count strings inside of it 108 VkResult create_string_list(const struct loader_instance *inst, uint32_t allocated_count, struct loader_string_list *string_list);
|
H A D | loader_common.h | 71 uint32_t allocated_count; member
|
H A D | loader.c | 270 VkResult create_string_list(const struct loader_instance *inst, uint32_t allocated_count, struct loader_string_list *string_list) { in create_string_list() argument 272 string_list->list = loader_instance_heap_calloc(inst, sizeof(char *) * allocated_count, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); in create_string_list() 276 string_list->allocated_count = allocated_count; in create_string_list() 283 if (string_list->allocated_count == 0) { in append_str_to_string_list() 284 string_list->allocated_count = 32; in append_str_to_string_list() 286 loader_instance_heap_calloc(inst, sizeof(char *) * string_list->allocated_count, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); in append_str_to_string_list() 290 } else if (string_list->count + 1 > string_list->allocated_count) { in append_str_to_string_list() 291 uint32_t new_allocated_count = string_list->allocated_count * 2; in append_str_to_string_list() 292 string_list->list = loader_instance_heap_realloc(inst, string_list->list, sizeof(char *) * string_list->allocated_count, in append_str_to_string_list() [all...] |
Completed in 4 milliseconds