Trouble getting validation layers to work

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;
    }

I love the modern method. Free tools, but no support. Just tell people to go to the internet and ask the public and hope to get a response. I would pay for it if that was an option.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.