Lines Matching defs:pool
434 /* command pool commands */
447 struct vn_command_pool *pool =
448 vk_zalloc(alloc, sizeof(*pool), VN_DEFAULT_ALIGN,
450 if (!pool)
453 vn_object_base_init(&pool->base, VK_OBJECT_TYPE_COMMAND_POOL, &dev->base);
455 pool->allocator = *alloc;
456 pool->queue_family_index = pCreateInfo->queueFamilyIndex;
457 list_inithead(&pool->command_buffers);
459 VkCommandPool pool_handle = vn_command_pool_to_handle(pool);
475 struct vn_command_pool *pool = vn_command_pool_from_handle(commandPool);
478 if (!pool)
481 alloc = pAllocator ? pAllocator : &pool->allocator;
484 * pool->command_buffers. Otherwise, another thread might reuse their
491 &pool->command_buffers, head) {
497 vn_object_base_fini(&pool->base);
498 vk_free(alloc, pool);
508 struct vn_command_pool *pool = vn_command_pool_from_handle(commandPool);
511 &pool->command_buffers, head) {
541 struct vn_command_pool *pool =
543 const VkAllocationCallbacks *alloc = &pool->allocator;
565 cmd->allocator = pool->allocator;
567 cmd->queue_family_index = pool->queue_family_index;
569 list_addtail(&cmd->head, &pool->command_buffers);
593 struct vn_command_pool *pool = vn_command_pool_from_handle(commandPool);
594 const VkAllocationCallbacks *alloc = &pool->allocator;