14757395258967641292VUID-VkBufferCreateInfo-sharingMode-parameter(ERROR / SPEC): msgNum: 0 - vkCreateBuffer: value of pCreateInfo->sharingMode (-858993460) does not fall within the begin..end range of the core VkSharingMode enumeration tokens and is not an extension added token. The Vulkan spec states: sharingMode must be a valid VkSharingMode value
Objects: 1
[0] 0, type: 0, name: NULL
I think you need to turn on warnings from your compiler. Many will warn for this kind of error.
See your line above which sets sharingMode. Whatâs the character after the field name? It should be an â=â, but itâs not. Itâs a â-â.
The error says that the value sharingMode that youâre providing is -858993460. Thatâs not the value that you think youâre populating this field with (0), which should make you take a closer look at the line that sets it and see the error.
Convert that to hex, and thatâs 0xCCCCCCCC. If youâre using Windows/MSVC and this is a Debug build, then this magic number implies that this field is still set to the value for âuninitialised stack memoryâ. Realizing this would also prompt you to double-check that line where you are trying to assign sharingMode a value.