Lines Matching refs:allocator
41 VkAllocationCallbacks allocator; member
101 VkAllocationCallbacks allocator; member
294 const VkAllocationCallbacks* allocator, in CreateInstance() argument
296 if (!allocator) in CreateInstance()
297 allocator = &kDefaultAllocCallbacks; in CreateInstance()
300 static_cast<VkInstance_T*>(allocator->pfnAllocation( in CreateInstance()
301 allocator->pUserData, sizeof(VkInstance_T), alignof(VkInstance_T), in CreateInstance()
307 instance->allocator = *allocator; in CreateInstance()
345 instance->allocator.pfnFree(instance->allocator.pUserData, instance); in DestroyInstance()
663 const VkAllocationCallbacks* allocator, in CreateDevice() argument
666 if (!allocator) in CreateDevice()
667 allocator = &instance->allocator; in CreateDevice()
668 VkDevice_T* device = static_cast<VkDevice_T*>(allocator->pfnAllocation( in CreateDevice()
669 allocator->pUserData, sizeof(VkDevice_T), alignof(VkDevice_T), in CreateDevice()
675 device->allocator = *allocator; in CreateDevice()
696 device->allocator.pfnFree(device->allocator.pUserData, device); in DestroyDevice()
708 VkAllocationCallbacks allocator; member
714 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
716 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
717 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
718 CommandPool* pool = static_cast<CommandPool*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
719 allocator->pUserData, sizeof(CommandPool), alignof(CommandPool), in DEFINE_OBJECT_HANDLE_CONVERSION()
723 pool->allocator = *allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
732 pool->allocator.pfnFree(pool->allocator.pUserData, pool); in DestroyCommandPool()
746 static_cast<VkCommandBuffer_T*>(pool.allocator.pfnAllocation( in AllocateCommandBuffers()
747 pool.allocator.pUserData, sizeof(VkCommandBuffer_T), in AllocateCommandBuffers()
759 pool.allocator.pfnFree(pool.allocator.pUserData, cmdbufs[i]); in AllocateCommandBuffers()
771 pool.allocator.pfnFree(pool.allocator.pUserData, cmdbufs[i]); in FreeCommandBuffers()
786 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
790 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
791 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
794 DeviceMemory* mem = static_cast<DeviceMemory*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
795 allocator->pUserData, size, alignof(DeviceMemory), in DEFINE_OBJECT_HANDLE_CONVERSION()
806 const VkAllocationCallbacks* allocator) { in FreeMemory() argument
807 if (!allocator) in FreeMemory()
808 allocator = &device->allocator; in FreeMemory()
810 allocator->pfnFree(allocator->pUserData, mem); in FreeMemory()
835 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
841 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
842 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
843 Buffer* buffer = static_cast<Buffer*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
844 allocator->pUserData, sizeof(Buffer), alignof(Buffer), in DEFINE_OBJECT_HANDLE_CONVERSION()
864 const VkAllocationCallbacks* allocator) { in DestroyBuffer() argument
865 if (!allocator) in DestroyBuffer()
866 allocator = &device->allocator; in DestroyBuffer()
868 allocator->pfnFree(allocator->pUserData, buffer); in DestroyBuffer()
882 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
901 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
902 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
903 Image* image = static_cast<Image*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
904 allocator->pUserData, sizeof(Image), alignof(Image), in DEFINE_OBJECT_HANDLE_CONVERSION()
924 const VkAllocationCallbacks* allocator) { in DestroyImage() argument
925 if (!allocator) in DestroyImage()
926 allocator = &device->allocator; in DestroyImage()
928 allocator->pfnFree(allocator->pUserData, image); in DestroyImage()
1249 void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* allocator) { in DestroyFence() argument
1265 … DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* allocator) { in DestroySemaphore() argument
1268 void DestroyEvent(VkDevice device, VkEvent event, const VkAllocationCallbacks* allocator) { in DestroyEvent() argument
1286 … DestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* allocator) { in DestroyQueryPool() argument
1294 …stroyBufferView(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* allocator) { in DestroyBufferView() argument
1301 … DestroyImageView(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* allocator) { in DestroyImageView() argument
1304 …haderModule(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* allocator) { in DestroyShaderModule() argument
1307 …lineCache(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* allocator) { in DestroyPipelineCache() argument
1320 void DestroyPipeline(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* allocator) { in DestroyPipeline() argument
1323 …eLayout(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* allocator) { in DestroyPipelineLayout() argument
1326 void DestroySampler(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* allocator) { in DestroySampler() argument
1329 …Device device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* allocator) { in DestroyDescriptorSetLayout() argument
1332 …torPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* allocator) { in DestroyDescriptorPool() argument
1349 …oyFramebuffer(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* allocator) { in DestroyFramebuffer() argument
1352 …stroyRenderPass(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* allocator) { in DestroyRenderPass() argument