MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / getRequiredExtensions

Method getRequiredExtensions

src/Renderer/vkRenderer.cpp:1031–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031std::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
1045bool vkRenderer::checkValidationLayerSupport() {
1046 uint32_t layerCount;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected