Lines Matching refs:pool
34 vk_command_pool_init(struct vk_command_pool *pool,
39 memset(pool, 0, sizeof(*pool));
40 vk_object_base_init(device, &pool->base,
43 pool->flags = pCreateInfo->flags;
44 pool->queue_family_index = pCreateInfo->queueFamilyIndex;
45 pool->alloc = pAllocator ? *pAllocator : device->alloc;
46 list_inithead(&pool->command_buffers);
52 vk_command_pool_finish(struct vk_command_pool *pool)
55 &pool->command_buffers, pool_link) {
58 assert(list_is_empty(&pool->command_buffers));
60 vk_object_base_finish(&pool->base);
70 struct vk_command_pool *pool;
73 pool = vk_alloc2(&device->alloc, pAllocator, sizeof(*pool), 8,
75 if (pool == NULL)
78 result = vk_command_pool_init(pool, device, pCreateInfo, pAllocator);
80 vk_free2(&device->alloc, pAllocator, pool);
84 *pCommandPool = vk_command_pool_to_handle(pool);
95 VK_FROM_HANDLE(vk_command_pool, pool, commandPool);
97 if (pool == NULL)
100 vk_command_pool_finish(pool);
101 vk_free2(&device->alloc, pAllocator, pool);
109 VK_FROM_HANDLE(vk_command_pool, pool, commandPool);
111 &pool->base.device->dispatch_table;
123 &pool->command_buffers, pool_link) {