Lines Matching refs:allocation_scope

34 void *loader_alloc(const VkAllocationCallbacks *pAllocator, size_t size, VkSystemAllocationScope allocation_scope) {
42 pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scope);
51 void *loader_calloc(const VkAllocationCallbacks *pAllocator, size_t size, VkSystemAllocationScope allocation_scope) {
59 pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scope);
86 VkSystemAllocationScope allocation_scope) {
89 pNewMem = loader_alloc(pAllocator, size, allocation_scope);
97 pNewMem = pAllocator->pfnReallocation(pAllocator->pUserData, pMemory, size, sizeof(uint64_t), allocation_scope);
105 void *loader_instance_heap_alloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) {
106 return loader_alloc(inst ? &inst->alloc_callbacks : NULL, size, allocation_scope);
109 void *loader_instance_heap_calloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) {
110 return loader_calloc(inst ? &inst->alloc_callbacks : NULL, size, allocation_scope);
117 VkSystemAllocationScope allocation_scope) {
118 return loader_realloc(inst ? &inst->alloc_callbacks : NULL, pMemory, orig_size, size, allocation_scope);
121 void *loader_device_heap_alloc(const struct loader_device *dev, size_t size, VkSystemAllocationScope allocation_scope) {
122 return loader_alloc(dev ? &dev->alloc_callbacks : NULL, size, allocation_scope);
125 void *loader_device_heap_calloc(const struct loader_device *dev, size_t size, VkSystemAllocationScope allocation_scope) {
126 return loader_calloc(dev ? &dev->alloc_callbacks : NULL, size, allocation_scope);
133 VkSystemAllocationScope allocation_scope) {
134 return loader_realloc(dev ? &dev->alloc_callbacks : NULL, pMemory, orig_size, size, allocation_scope);
138 VkSystemAllocationScope allocation_scope) {
139 return loader_alloc(NULL != pAllocator ? pAllocator : &inst->alloc_callbacks, size, allocation_scope);
143 size_t size, VkSystemAllocationScope allocation_scope) {
144 return loader_calloc(NULL != pAllocator ? pAllocator : &instance->alloc_callbacks, size, allocation_scope);
154 VkSystemAllocationScope allocation_scope) {
155 return loader_realloc(NULL != pAllocator ? pAllocator : &instance->alloc_callbacks, pMemory, orig_size, size, allocation_scope);