From f63be3ecc79499a9a362ce38d0f3be44033c37fc Mon Sep 17 00:00:00 2001 From: ladevieq Date: Thu, 23 Jan 2025 12:22:10 +0100 Subject: Store queues in a dedicated struct --- api-test/vk-device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api-test/vk-device.cpp') diff --git a/api-test/vk-device.cpp b/api-test/vk-device.cpp index 029d3ac..024b570 100644 --- a/api-test/vk-device.cpp +++ b/api-test/vk-device.cpp @@ -12,15 +12,15 @@ vkdevice vkdevice::render_device = vkdevice(); void vkdevice::init() { - queues[0U] = { + queues[static_cast(QueueType::GRAPHICS)] = { .usages = VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, }; - queues[1U] = { + queues[static_cast(QueueType::ASYNC_COMPUTE)] = { .usages = VK_QUEUE_COMPUTE_BIT, }; - queues[2U] = { + queues[static_cast(QueueType::TRANSFER)] = { .usages = VK_QUEUE_TRANSFER_BIT, }; -- cgit v1.3