Created
May 3, 2022 05:08
-
-
Save Morfly/ac614bd5050609a1d6646292fba2aaf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// env_setup/main.cpp | |
#define GLFW_INCLUDE_VULKAN | |
#include <GLFW/glfw3.h> | |
#define GLM_FORCE_RADIANS | |
#define GLM_FORCE_DEPTH_ZERO_TO_ONE | |
#include <glm/vec4.hpp> | |
#include <glm/mat4x4.hpp> | |
#include <iostream> | |
int main() { | |
glfwInit(); | |
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); | |
GLFWwindow* window = glfwCreateWindow(800, 600, "Vulkan window", nullptr, nullptr); | |
uint32_t extensionCount = 0; | |
vkEnumerateInstanceExtensionProperties(nullptr, &extensionCount, nullptr); | |
std::cout << extensionCount << " extensions supported\n"; | |
glm::mat4 matrix; | |
glm::vec4 vec; | |
auto test = matrix * vec; | |
while(!glfwWindowShouldClose(window)) { | |
glfwPollEvents(); | |
} | |
glfwDestroyWindow(window); | |
glfwTerminate(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment