| 1029 | } |
| 1030 | |
| 1031 | std::vector<const char *> vkRenderer::getRequiredExtensions() { |
| 1032 | uint32_t glfwExtensionCount = 0; |
| 1033 | const char **glfwExtensions; |
| 1034 | glfwExtensions = glfwGetRequiredInstanceExtensions(&glfwExtensionCount); |
| 1035 | |
| 1036 | std::vector<const char *> extensions(glfwExtensions, glfwExtensions + glfwExtensionCount); |
| 1037 | |
| 1038 | if (enableValidationLayers) { |
| 1039 | extensions.push_back(VK_EXT_DEBUG_REPORT_EXTENSION_NAME); |
| 1040 | } |
| 1041 | |
| 1042 | return extensions; |
| 1043 | } |
| 1044 | |
| 1045 | bool vkRenderer::checkValidationLayerSupport() { |
| 1046 | uint32_t layerCount; |
nothing calls this directly
no outgoing calls
no test coverage detected