vkGetDeviceQueue exception when getting present queue

0

vkGetDeviceQueue( _logicalDevice, _presentFamilyIndex, 0, &_presentQueue ); returns exception

layers: VUID-vkGetDeviceQueue-queueFamilyIndex-00384(ERROR / SPEC): msgNum: -1715741371 - Validation Error: [ VUID-vkGetDeviceQueue-queueFamilyIndex-00384 ] Object 0: handle = 0x55b4960, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x99bbdd45 | vkGetDeviceQueue: queueFamilyIndex (= 2) is not one of the queue families given via VkDeviceQueueCreateInfo structures when the device was created. The Vulkan spec states: queueFamilyIndex must be one of the queue family indices specified when device was created, via the VkDeviceQueueCreateInfo structure (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkGetDeviceQueue-queueFamilyIndex-00384) Objects: 1 [0] 0x55b4960, type: 3, name: NULL

exception: Unhandled exception at 0x79A41957 (vulkan-1.dll) in VK GAME.exe: 0xC0000005: Access violation writing location 0x00000000.

it worked on my old computer, but when i got a new computer, it kind of broke.

c++
graphics
vulkan
asked on Stack Overflow Apr 22, 2020 by Christian S

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0