File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ unique queue families that are necessary for the required queues:
194194QueueFamilyIndices indices = findQueueFamilies(physicalDevice);
195195
196196std::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
199199float queuePriority = 1.0f;
200200for (uint32_t queueFamily : uniqueQueueFamilies) {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice);
4747
4848VkCommandPoolCreateInfo poolInfo = {};
4949poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
50- poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily;
50+ poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily.value() ;
5151poolInfo.flags = 0 ; // Optional
5252```
5353
You can’t perform that action at this time.
0 commit comments