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

Method initVulkan

src/Renderer/vkRenderer.cpp:76–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void vkRenderer::initVulkan() {
77 createInstance();
78 setupDebugCallback();
79 createSurface();
80 pickPhysicalDevice();
81 createLogicalDevice();
82 createSwapChain();
83 createImageViews();
84 createRenderPass();
85 createDescriptorSetLayout();
86 createGraphicsPipeline();
87 createFramebuffers();
88 createCommandPool();
89 createVertexBuffers();
90 createUniformBuffer();
91 createDescriptorPool();
92 createDescriptorSet();
93 createCommandBuffers();
94 createSemaphores();
95}
96
97void vkRenderer::mainLoop() {
98 while (!glfwWindowShouldClose(window)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected