Lines Matching refs:allocator
39 VkAllocationCallbacks allocator;
99 VkAllocationCallbacks allocator;
286 const VkAllocationCallbacks* allocator,
288 if (!allocator)
289 allocator = &kDefaultAllocCallbacks;
292 static_cast<VkInstance_T*>(allocator->pfnAllocation(
293 allocator->pUserData, sizeof(VkInstance_T), alignof(VkInstance_T),
299 instance->allocator = *allocator;
336 const VkAllocationCallbacks* /*allocator*/) {
337 instance->allocator.pfnFree(instance->allocator.pUserData, instance);
650 const VkAllocationCallbacks* allocator,
653 if (!allocator)
654 allocator = &instance->allocator;
655 VkDevice_T* device = static_cast<VkDevice_T*>(allocator->pfnAllocation(
656 allocator->pUserData, sizeof(VkDevice_T), alignof(VkDevice_T),
662 device->allocator = *allocator;
680 const VkAllocationCallbacks* /*allocator*/) {
683 device->allocator.pfnFree(device->allocator.pUserData, device);
695 VkAllocationCallbacks allocator;
701 const VkAllocationCallbacks* allocator,
703 if (!allocator)
704 allocator = &device->allocator;
705 CommandPool* pool = static_cast<CommandPool*>(allocator->pfnAllocation(
706 allocator->pUserData, sizeof(CommandPool), alignof(CommandPool),
710 pool->allocator = *allocator;
717 const VkAllocationCallbacks* /*allocator*/) {
719 pool->allocator.pfnFree(pool->allocator.pUserData, pool);
733 static_cast<VkCommandBuffer_T*>(pool.allocator.pfnAllocation(
734 pool.allocator.pUserData, sizeof(VkCommandBuffer_T),
746 pool.allocator.pfnFree(pool.allocator.pUserData, cmdbufs[i]);
758 pool.allocator.pfnFree(pool.allocator.pUserData, cmdbufs[i]);
773 const VkAllocationCallbacks* allocator,
777 if (!allocator)
778 allocator = &device->allocator;
781 DeviceMemory* mem = static_cast<DeviceMemory*>(allocator->pfnAllocation(
782 allocator->pUserData, size, alignof(DeviceMemory),
793 const VkAllocationCallbacks* allocator) {
794 if (!allocator)
795 allocator = &device->allocator;
797 allocator->pfnFree(allocator->pUserData, mem);
822 const VkAllocationCallbacks* allocator,
828 if (!allocator)
829 allocator = &device->allocator;
830 Buffer* buffer = static_cast<Buffer*>(allocator->pfnAllocation(
831 allocator->pUserData, sizeof(Buffer), alignof(Buffer),
851 const VkAllocationCallbacks* allocator) {
852 if (!allocator)
853 allocator = &device->allocator;
855 allocator->pfnFree(allocator->pUserData, buffer);
869 const VkAllocationCallbacks* allocator,
888 if (!allocator)
889 allocator = &device->allocator;
890 Image* image = static_cast<Image*>(allocator->pfnAllocation(
891 allocator->pUserData, sizeof(Image), alignof(Image),
911 const VkAllocationCallbacks* allocator) {
912 if (!allocator)
913 allocator = &device->allocator;
915 allocator->pfnFree(allocator->pUserData, image);
962 const VkAllocationCallbacks* /*allocator*/,
970 const VkAllocationCallbacks* /*allocator*/,
987 const VkAllocationCallbacks* /*allocator*/,
996 const VkAllocationCallbacks* /*allocator*/,
1004 const VkAllocationCallbacks* /*allocator*/,
1012 const VkAllocationCallbacks* /*allocator*/,
1020 const VkAllocationCallbacks* /*allocator*/,
1030 const VkAllocationCallbacks* /*allocator*/,
1041 const VkAllocationCallbacks* /*allocator*/,
1050 const VkAllocationCallbacks* /*allocator*/,
1058 const VkAllocationCallbacks* /*allocator*/,
1067 const VkAllocationCallbacks* /*allocator*/,
1075 const VkAllocationCallbacks* /*allocator*/,
1083 const VkAllocationCallbacks* /*allocator*/,
1091 const VkAllocationCallbacks* /*allocator*/,
1099 const VkAllocationCallbacks* /*allocator*/,
1206 void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* allocator) {
1222 void DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* allocator) {
1225 void DestroyEvent(VkDevice device, VkEvent event, const VkAllocationCallbacks* allocator) {
1243 void DestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* allocator) {
1251 void DestroyBufferView(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* allocator) {
1258 void DestroyImageView(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* allocator) {
1261 void DestroyShaderModule(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* allocator) {
1264 void DestroyPipelineCache(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* allocator) {
1277 void DestroyPipeline(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* allocator) {
1280 void DestroyPipelineLayout(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* allocator) {
1283 void DestroySampler(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* allocator) {
1286 void DestroyDescriptorSetLayout(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* allocator) {
1289 void DestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* allocator) {
1306 void DestroyFramebuffer(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* allocator) {
1309 void DestroyRenderPass(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* allocator) {