Fixed some issues
All checks were successful
Build VulkanEngine / build (push) Successful in 5m10s
Build VulkanEngine / nix (push) Successful in 3m22s
Build VulkanEngine / debug (push) Successful in 3m16s
Build VulkanEngine / release (BUNDLE) (push) Successful in 3m45s
Build VulkanEngine / release (PORTABLE) (push) Successful in 3m35s
Build VulkanEngine / notify (push) Successful in 4s
All checks were successful
Build VulkanEngine / build (push) Successful in 5m10s
Build VulkanEngine / nix (push) Successful in 3m22s
Build VulkanEngine / debug (push) Successful in 3m16s
Build VulkanEngine / release (BUNDLE) (push) Successful in 3m45s
Build VulkanEngine / release (PORTABLE) (push) Successful in 3m35s
Build VulkanEngine / notify (push) Successful in 4s
This commit is contained in:
parent
f724ecc09d
commit
207cdbf2a3
@ -597,6 +597,13 @@ void Engine::run() {
|
|||||||
|
|
||||||
buildImgui();
|
buildImgui();
|
||||||
draw();
|
draw();
|
||||||
|
|
||||||
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
|
if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) {
|
||||||
|
ImGui::UpdatePlatformWindows();
|
||||||
|
ImGui::RenderPlatformWindowsDefault();
|
||||||
|
}
|
||||||
|
|
||||||
// Merge glfw logger with main logger
|
// Merge glfw logger with main logger
|
||||||
_logger.merge(logger.logBuffer);
|
_logger.merge(logger.logBuffer);
|
||||||
logger.clear();
|
logger.clear();
|
||||||
@ -2247,6 +2254,12 @@ void Engine::getAvailableGPU() {
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
_logger.logDisk(ENGINE, EINFO, "Listing available GPUs...");
|
_logger.logDisk(ENGINE, EINFO, "Listing available GPUs...");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (volkInitialize() != VK_SUCCESS) {
|
||||||
|
_logger.logFatal(ENGINE, "Failed to initialize volk (no Vulkan loader found)");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
vkb::InstanceBuilder builder;
|
vkb::InstanceBuilder builder;
|
||||||
// Create a minimal instance
|
// Create a minimal instance
|
||||||
auto instRet = builder.set_app_name("Engine")
|
auto instRet = builder.set_app_name("Engine")
|
||||||
@ -2264,6 +2277,8 @@ void Engine::getAvailableGPU() {
|
|||||||
|
|
||||||
VkInstance instance = vkbInst.instance;
|
VkInstance instance = vkbInst.instance;
|
||||||
|
|
||||||
|
volkLoadInstance(instance);
|
||||||
|
|
||||||
// Get GPUs
|
// Get GPUs
|
||||||
uint32_t deviceCount {0};
|
uint32_t deviceCount {0};
|
||||||
|
|
||||||
@ -2289,6 +2304,7 @@ void Engine::getAvailableGPU() {
|
|||||||
);
|
);
|
||||||
_logger.logAll(ENGINE, EINFO, "GPU {}:\n{}", i, deviceProperties.properties.deviceName);
|
_logger.logAll(ENGINE, EINFO, "GPU {}:\n{}", i, deviceProperties.properties.deviceName);
|
||||||
}
|
}
|
||||||
|
vkb::destroy_instance(vkbInst);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user