Need Help with my GPU to using validationlayers

My computer using NVIDIA GTX 1060 graphics, but when I trying to run Vulkan tutorials in my computer. I met the trouble that my GPU is not support valdationlayers. Just run this code and return false:

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

What can I do to fix this problem?

You can use Markdown here:

```
blah();
cool();
```

results in

blah();
cool();

Layers are provided by the Vulkan SDK, not by GPU. Install the SDK, and read the docs appropriate to your platform.

Thx,I think my Vulkan SDK is corruptioned.

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