• Home
  • Raw
  • Download

Lines Matching refs:allocator

40     VkAllocationCallbacks allocator;  member
100 VkAllocationCallbacks allocator; member
293 const VkAllocationCallbacks* allocator, in CreateInstance() argument
295 if (!allocator) in CreateInstance()
296 allocator = &kDefaultAllocCallbacks; in CreateInstance()
299 static_cast<VkInstance_T*>(allocator->pfnAllocation( in CreateInstance()
300 allocator->pUserData, sizeof(VkInstance_T), alignof(VkInstance_T), in CreateInstance()
306 instance->allocator = *allocator; in CreateInstance()
344 instance->allocator.pfnFree(instance->allocator.pUserData, instance); in DestroyInstance()
662 const VkAllocationCallbacks* allocator, in CreateDevice() argument
665 if (!allocator) in CreateDevice()
666 allocator = &instance->allocator; in CreateDevice()
667 VkDevice_T* device = static_cast<VkDevice_T*>(allocator->pfnAllocation( in CreateDevice()
668 allocator->pUserData, sizeof(VkDevice_T), alignof(VkDevice_T), in CreateDevice()
674 device->allocator = *allocator; in CreateDevice()
695 device->allocator.pfnFree(device->allocator.pUserData, device); in DestroyDevice()
707 VkAllocationCallbacks allocator; member
713 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
715 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
716 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
717 CommandPool* pool = static_cast<CommandPool*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
718 allocator->pUserData, sizeof(CommandPool), alignof(CommandPool), in DEFINE_OBJECT_HANDLE_CONVERSION()
722 pool->allocator = *allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
731 pool->allocator.pfnFree(pool->allocator.pUserData, pool); in DestroyCommandPool()
745 static_cast<VkCommandBuffer_T*>(pool.allocator.pfnAllocation( in AllocateCommandBuffers()
746 pool.allocator.pUserData, sizeof(VkCommandBuffer_T), in AllocateCommandBuffers()
758 pool.allocator.pfnFree(pool.allocator.pUserData, cmdbufs[i]); in AllocateCommandBuffers()
770 pool.allocator.pfnFree(pool.allocator.pUserData, cmdbufs[i]); in FreeCommandBuffers()
785 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
789 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
790 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
793 DeviceMemory* mem = static_cast<DeviceMemory*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
794 allocator->pUserData, size, alignof(DeviceMemory), in DEFINE_OBJECT_HANDLE_CONVERSION()
805 const VkAllocationCallbacks* allocator) { in FreeMemory() argument
806 if (!allocator) in FreeMemory()
807 allocator = &device->allocator; in FreeMemory()
809 allocator->pfnFree(allocator->pUserData, mem); in FreeMemory()
834 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
840 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
841 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
842 Buffer* buffer = static_cast<Buffer*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
843 allocator->pUserData, sizeof(Buffer), alignof(Buffer), in DEFINE_OBJECT_HANDLE_CONVERSION()
863 const VkAllocationCallbacks* allocator) { in DestroyBuffer() argument
864 if (!allocator) in DestroyBuffer()
865 allocator = &device->allocator; in DestroyBuffer()
867 allocator->pfnFree(allocator->pUserData, buffer); in DestroyBuffer()
881 const VkAllocationCallbacks* allocator, in DEFINE_OBJECT_HANDLE_CONVERSION()
900 if (!allocator) in DEFINE_OBJECT_HANDLE_CONVERSION()
901 allocator = &device->allocator; in DEFINE_OBJECT_HANDLE_CONVERSION()
902 Image* image = static_cast<Image*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION()
903 allocator->pUserData, sizeof(Image), alignof(Image), in DEFINE_OBJECT_HANDLE_CONVERSION()
923 const VkAllocationCallbacks* allocator) { in DestroyImage() argument
924 if (!allocator) in DestroyImage()
925 allocator = &device->allocator; in DestroyImage()
927 allocator->pfnFree(allocator->pUserData, image); in DestroyImage()
1218 void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* allocator) { in DestroyFence() argument
1234 … DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* allocator) { in DestroySemaphore() argument
1237 void DestroyEvent(VkDevice device, VkEvent event, const VkAllocationCallbacks* allocator) { in DestroyEvent() argument
1255 … DestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* allocator) { in DestroyQueryPool() argument
1263 …stroyBufferView(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* allocator) { in DestroyBufferView() argument
1270 … DestroyImageView(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* allocator) { in DestroyImageView() argument
1273 …haderModule(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* allocator) { in DestroyShaderModule() argument
1276 …lineCache(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* allocator) { in DestroyPipelineCache() argument
1289 void DestroyPipeline(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* allocator) { in DestroyPipeline() argument
1292 …eLayout(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* allocator) { in DestroyPipelineLayout() argument
1295 void DestroySampler(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* allocator) { in DestroySampler() argument
1298 …Device device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* allocator) { in DestroyDescriptorSetLayout() argument
1301 …torPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* allocator) { in DestroyDescriptorPool() argument
1318 …oyFramebuffer(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* allocator) { in DestroyFramebuffer() argument
1321 …stroyRenderPass(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* allocator) { in DestroyRenderPass() argument