if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
- VkResult result = vk_command_pool_init(&pool->vk, &device->vk, pCreateInfo, pAllocator);
+ VkResult result = vk_command_pool_init(&device->vk, &pool->vk, pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
return result;
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
- VkResult result = vk_command_pool_init(&pool->vk, &device->vk,
+ VkResult result = vk_command_pool_init(&device->vk, &pool->vk,
pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
- VkResult result = vk_command_pool_init(&pool->vk, &device->vk,
+ VkResult result = vk_command_pool_init(&device->vk, &pool->vk,
pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
- VkResult result = vk_command_pool_init(&pool->vk, &device->vk,
+ VkResult result = vk_command_pool_init(&device->vk, &pool->vk,
pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
#include "vk_log.h"
VkResult MUST_CHECK
-vk_command_pool_init(struct vk_command_pool *pool,
- struct vk_device *device,
+vk_command_pool_init(struct vk_device *device,
+ struct vk_command_pool *pool,
const VkCommandPoolCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator)
{
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
- result = vk_command_pool_init(pool, device, pCreateInfo, pAllocator);
+ result = vk_command_pool_init(device, pool, pCreateInfo, pAllocator);
if (unlikely(result != VK_SUCCESS)) {
vk_free2(&device->alloc, pAllocator, pool);
return result;
VK_OBJECT_TYPE_COMMAND_POOL)
VkResult MUST_CHECK
-vk_command_pool_init(struct vk_command_pool *pool,
- struct vk_device *device,
+vk_command_pool_init(struct vk_device *device,
+ struct vk_command_pool *pool,
const VkCommandPoolCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator);