We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 251e88a + 23cb3ea commit 5b55c93Copy full SHA for 5b55c93
en/03_Drawing_a_triangle/00_Setup/04_Logical_device_and_queues.adoc
@@ -15,7 +15,7 @@ Start by adding a new class member to store the logical device handle in.
15
16
[,c++]
17
----
18
-vk::raii::Device device;
+vk::raii::Device device = nullptr;
19
20
21
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.
44
45
46
std::vector<vk::QueueFamilyProperties> queueFamilyProperties = physicalDevice.getQueueFamilyProperties();
47
-
+uint32_t graphicsIndex = findQueueFamilies(m_physicalDevice);
48
vk::DeviceQueueCreateInfo deviceQueueCreateInfo { .queueFamilyIndex = graphicsIndex };
49
50
0 commit comments