Index: Anvil/include/wrappers/device.h IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- Anvil/include/wrappers/device.h (revision ce4fedf4ef93f7a70b9ce88e61914074cd159191) +++ Anvil/include/wrappers/device.h (revision ) @@ -256,7 +256,7 @@ { Anvil::Queue* result_ptr = nullptr; - if (m_compute_queues.size() > n_queue) + if (m_transfer_queues.size() > n_queue) { result_ptr = m_transfer_queues[n_queue]; } \ No newline at end of file Index: Anvil/src/wrappers/command_pool.cpp IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- Anvil/src/wrappers/command_pool.cpp (revision ce4fedf4ef93f7a70b9ce88e61914074cd159191) +++ Anvil/src/wrappers/command_pool.cpp (revision ) @@ -28,6 +28,7 @@ #include "wrappers/device.h" #include "wrappers/queue.h" #include +#include /* Please see header for specification */ Anvil::CommandPool::CommandPool(Anvil::Device* device_ptr, @@ -43,6 +44,8 @@ VkCommandPoolCreateInfo command_pool_create_info; uint32_t queue_family_index = m_device_ptr->get_queue_family_index(queue_family); VkResult result_vk; + + assert(queue_family_index != VK_QUEUE_FAMILY_IGNORED); /* Go on and create the command pool */ command_pool_create_info.flags = ((transient_allocations_friendly) ? VK_COMMAND_POOL_CREATE_TRANSIENT_BIT : 0) |