【发布时间】:2017-12-04 14:11:09
【问题描述】:
您好,我从 vulkan API 开始,我正在尝试显示验证层。 但问题是我只能访问一个设备验证层:“VK_LAYER_NV_optimus”
{//Enumerating Device Verification Layers
uint32_t layer_count = 0;
vkEnumerateDeviceLayerProperties(_gpu, &layer_count, nullptr);
std::vector<VkLayerProperties> layer_property_list(layer_count);
vkEnumerateDeviceLayerProperties(_gpu, &layer_count, layer_property_list.data());
std::cout << "Device Layers : \n";
for (auto &i : layer_property_list) {
std::cout << " " << i.layerName << "\t\t | " << i.description << std::endl;
}
std::cout << std::endl;
}
在我关注的教程中,这些人有更多层,他正在使用“VK_LAYER_LUNARG_standard_validation”。
here你可以看到这家伙得到了什么。
虽然教程可能不是最新的,但我找不到与此主题相关的任何内容。
感谢您的帮助:)
【问题讨论】:
-
尝试通过环境变量启用层。这样您就不必重新编译您的代码来启用或禁用特定层。但除此之外 - 最近我安装了最新版本的 Vulkan SDK(在 Windows 上)并且层不起作用。我不得不将丢失的条目添加到注册表中。