MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / VulkanContextCreator

Method VulkanContextCreator

shared/UtilsVulkan.cpp:2759–2774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2757}
2758
2759VulkanContextCreator::VulkanContextCreator(VulkanInstance& vk, VulkanRenderDevice& dev, void* window, int screenWidth, int screenHeight,
2760 const VulkanContextFeatures& ctxFeatures):
2761 instance(vk),
2762 vkDev(dev)
2763{
2764 createInstance(&vk.instance);
2765
2766 if (!setupDebugCallbacks(vk.instance, &vk.messenger, &vk.reportCallback))
2767 exit(0);
2768
2769 if (glfwCreateWindowSurface(vk.instance, (GLFWwindow *)window, nullptr, &vk.surface))
2770 exit(0);
2771
2772 if (!initVulkanRenderDevice3(vk, dev, screenWidth, screenHeight, ctxFeatures))
2773 exit(0);
2774}
2775
2776VulkanContextCreator::~VulkanContextCreator()
2777{

Callers

nothing calls this directly

Calls 3

createInstanceFunction · 0.85
setupDebugCallbacksFunction · 0.85
initVulkanRenderDevice3Function · 0.85

Tested by

no test coverage detected