| 43 | } |
| 44 | |
| 45 | void BarrierQueueFamilyBase::QueueFamilyObjs::Init(vkt::Device* device, uint32_t qf_index, VkQueue qf_queue, |
| 46 | VkCommandPoolCreateFlags cp_flags) { |
| 47 | index = qf_index; |
| 48 | queue = new vkt::Queue(qf_queue, qf_index); |
| 49 | command_pool = new vkt::CommandPool(*device, qf_index, cp_flags); |
| 50 | command_buffer = new vkt::CommandBuffer(*device, *command_pool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); |
| 51 | command_buffer2 = new vkt::CommandBuffer(*device, *command_pool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); |
| 52 | } |
| 53 | |
| 54 | BarrierQueueFamilyBase::Context::Context(VkLayerTest* test, const std::vector<uint32_t>& queue_family_indices) : layer_test(test) { |
| 55 | if (0 == queue_family_indices.size()) { |
no test coverage detected