Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5bf4b6

Browse files
committed
Fix leftover old QueueFamilyIndices code
1 parent 717fb50 commit e5bf4b6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

03_Drawing_a_triangle/01_Presentation/00_Window_surface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ unique queue families that are necessary for the required queues:
194194
QueueFamilyIndices indices = findQueueFamilies(physicalDevice);
195195

196196
std::vector<VkDeviceQueueCreateInfo> queueCreateInfos;
197-
std::set<uint32_t> uniqueQueueFamilies = {indices.graphicsFamily, indices.presentFamily};
197+
std::set<uint32_t> uniqueQueueFamilies = {indices.graphicsFamily.value(), indices.presentFamily.value()};
198198

199199
float queuePriority = 1.0f;
200200
for (uint32_t queueFamily : uniqueQueueFamilies) {

03_Drawing_a_triangle/03_Drawing/01_Command_buffers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice);
4747

4848
VkCommandPoolCreateInfo poolInfo = {};
4949
poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
50-
poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily;
50+
poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily.value();
5151
poolInfo.flags = 0; // Optional
5252
```
5353

0 commit comments

Comments
 (0)