Vkcreateinstance () бросает ошибку сегментации при включении слоя проверки [закрыто]C++

Программы на C++. Форум разработчиков
Anonymous
Vkcreateinstance () бросает ошибку сегментации при включении слоя проверки [закрыто]

Сообщение Anonymous »

Я следую этому учебному пособию для разработки моего первого приложения Вулькана.#include
#include
#include
#include
#include

#define GLFW_INCLUDE_VULKAN
#include

constexpr uint32_t WIDTH = 800;
constexpr uint32_t HEIGHT = 600;

#define DEBUGV
// #define PRINT_EXTENSIONS
// #define PRINT_LAYERS

#ifdef DEBUGV
const bool ENABLE_VALIDATION_LAYER=true;
#else
const bool ENABLE_VALIDATION_LAYER=false;
#endif //DEBUG

const std::vector layerNames={
"VK_LAYER_KHRONOS_validation",
};

class MyApplication {
public:
void run() {
initWindow();
initVulkan();
mainLoop();
cleanup();
}

private:
GLFWwindow *window;
VkInstance instance;
// std::vector layerNames;
void initWindow() {
if(glfwInit()==GLFW_FALSE)
std::cout

Подробнее здесь: https://stackoverflow.com/questions/797 ... tion-layer

Вернуться в «C++»