MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ initialize()

bool MayaFlux::Core::VKDevice::initialize ( vk::Instance  instance,
vk::SurfaceKHR  temp_surface,
const GraphicsBackendInfo backend_info 
)

Initialize device (pick physical device and create logical device)

Parameters
instanceVulkan instance
backend_infoGraphics surface configuration
temp_surfaceTemporary surface for presentation support checks (real surface created with windows and swapchain later)
Returns
true if initialization succeeded

Definition at line 49 of file VKDevice.cpp.

50{
51 if (!pick_physical_device(instance, nullptr)) {
52 return false;
53 }
54
55 return create_logical_device(instance, backend_info);
56}
bool pick_physical_device(vk::Instance instance, vk::SurfaceKHR temp_surface)
Pick a suitable physical device (GPU)
Definition VKDevice.cpp:72
bool create_logical_device(vk::Instance instance, const GraphicsBackendInfo &backend_info)
Create the logical device and retrieve queue handles.
Definition VKDevice.cpp:200

References create_logical_device(), and pick_physical_device().

Referenced by MayaFlux::Core::VKContext::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: