• Home
  • Raw
  • Download

Lines Matching refs:pMemory

35     void *pMemory = NULL;  local
42pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scop…
45 pMemory = malloc(size);
48 return pMemory;
52 void *pMemory = NULL; local
59pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scop…
60 if (pMemory) {
61 memset(pMemory, 0, size);
65 pMemory = calloc(1, size);
68 return pMemory;
71 void loader_free(const VkAllocationCallbacks *pAllocator, void *pMemory) { argument
72 if (pMemory != NULL) {
77 pAllocator->pfnFree(pAllocator->pUserData, pMemory);
80 free(pMemory);
85 void *loader_realloc(const VkAllocationCallbacks *pAllocator, void *pMemory, size_t orig_size, size… argument
88 if (pMemory == NULL || orig_size == 0) {
91 loader_free(pAllocator, pMemory);
97 …pNewMem = pAllocator->pfnReallocation(pAllocator->pUserData, pMemory, size, sizeof(uint64_t), allo…
100 pNewMem = realloc(pMemory, size);
113 void loader_instance_heap_free(const struct loader_instance *inst, void *pMemory) { argument
114 loader_free(inst ? &inst->alloc_callbacks : NULL, pMemory);
116 void *loader_instance_heap_realloc(const struct loader_instance *inst, void *pMemory, size_t orig_s… argument
118 …return loader_realloc(inst ? &inst->alloc_callbacks : NULL, pMemory, orig_size, size, allocation_s…
129 void loader_device_heap_free(const struct loader_device *dev, void *pMemory) { argument
130 loader_free(dev ? &dev->alloc_callbacks : NULL, pMemory);
132 void *loader_device_heap_realloc(const struct loader_device *dev, void *pMemory, size_t orig_size, … argument
134 …return loader_realloc(dev ? &dev->alloc_callbacks : NULL, pMemory, orig_size, size, allocation_sco…
148 void *pMemory) { argument
149 loader_free(NULL != pAllocator ? pAllocator : &instance->alloc_callbacks, pMemory);
153 void *pMemory, size_t orig_size, size_t size, argument
155 …return loader_realloc(NULL != pAllocator ? pAllocator : &instance->alloc_callbacks, pMemory, orig_…