| 33 | } |
| 34 | |
| 35 | Queue::Queue(const VulkanContext& context, CommandQueue queueID, vk::Queue queue, uint32_t queueFamilyIndex) |
| 36 | : m_Context(context) |
| 37 | , m_Queue(queue) |
| 38 | , m_QueueID(queueID) |
| 39 | , m_QueueFamilyIndex(queueFamilyIndex) |
| 40 | , m_LifetimeTracker(context, this) |
| 41 | { |
| 42 | auto semaphoreTypeInfo = vk::SemaphoreTypeCreateInfo() |
| 43 | .setSemaphoreType(vk::SemaphoreType::eTimeline); |
| 44 | |
| 45 | auto semaphoreInfo = vk::SemaphoreCreateInfo() |
| 46 | .setPNext(&semaphoreTypeInfo); |
| 47 | |
| 48 | trackingSemaphore = context.device.createSemaphore(semaphoreInfo, context.allocationCallbacks); |
| 49 | } |
| 50 | |
| 51 | Queue::~Queue() |
| 52 | { |
nothing calls this directly
no outgoing calls
no test coverage detected