I have Win 10 OS, no graphics card, VulkanSDK 1.2.189.1.
I am running the tutorials from:
The checkValidationLayerSupport()
routine called from createInstance()
gets no validation count and always returns false (causing the createInstance()
routine to throw an exception:
validation layers requested, but not available!
bool checkValidationLayerSupport() {
uint32_t layerCount;
vkEnumerateInstanceLayerProperties(&layerCount, nullptr);
std::vector<VkLayerProperties> availableLayers(layerCount);
vkEnumerateInstanceLayerProperties(&layerCount, availableLayers.data());
for (const char* layerName : validationLayers) {
bool layerFound = false;
for (const auto& layerProperties : availableLayers) {
if (strcmp(layerName, layerProperties.layerName) == 0) {
layerFound = true;
break;
}
}
if (!layerFound) {
return false;
}
}
return true;
}