Skip to content

Commit 23cb3ea

Browse files
authored
Update 04_Logical_device_and_queues.adoc
1 parent 017a919 commit 23cb3ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/03_Drawing_a_triangle/00_Setup/04_Logical_device_and_queues.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Start by adding a new class member to store the logical device handle in.
1515

1616
[,c++]
1717
----
18-
vk::raii::Device device;
18+
vk::raii::Device device = nullptr;
1919
----
2020

2121
Next, add a `createLogicalDevice` function that is called from `initVulkan`.
@@ -44,7 +44,7 @@ Right now we're only interested in a queue with graphics capabilities.
4444
[,c++]
4545
----
4646
std::vector<vk::QueueFamilyProperties> queueFamilyProperties = physicalDevice.getQueueFamilyProperties();
47-
47+
uint32_t graphicsIndex = findQueueFamilies(m_physicalDevice);
4848
vk::DeviceQueueCreateInfo deviceQueueCreateInfo { .queueFamilyIndex = graphicsIndex };
4949
----
5050

0 commit comments

Comments
 (0)