How to get the total extensions your GPU support using vulkan in C++

1 Answer

0 votes
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>

#include <iostream>

int main() {
    uint32_t extensionCount = 0;

    vkEnumerateInstanceExtensionProperties(nullptr, &extensionCount, nullptr);

    std::cout << extensionCount << '\n';

    return EXIT_SUCCESS;
}





/*
run:

15

*/

 



answered Jan 17, 2022 by avibootz
...