Remove application::queue_family_index()

This commit is contained in:
Patrick Nicolas
2025-08-20 22:11:43 +02:00
parent 5c397e125c
commit a82ee8c038
5 changed files with 6 additions and 11 deletions
-5
View File
@@ -348,11 +348,6 @@ public:
return instance().xr_instance.now();
}
static uint32_t queue_family_index()
{
return instance().vk_queue_family_index;
}
static thread_safe<vk::raii::Queue> & get_queue()
{
return instance().vk_queue;
+3 -3
View File
@@ -345,9 +345,9 @@ imgui_context::imgui_context(
ImGui_ImplVulkan_InitInfo init_info = {
.Instance = *application::get_vulkan_instance(),
.PhysicalDevice = *application::get_physical_device(),
.Device = *application::get_device(),
.QueueFamily = application::queue_family_index(),
.PhysicalDevice = *physical_device,
.Device = *device,
.QueueFamily = queue_family_index,
.Queue = *queue.get_unsafe(),
.RenderPass = *renderpass,
.MinImageCount = 2,
+1 -1
View File
@@ -441,7 +441,7 @@ std::pair<entt::entity, components::node &> scene::load_gltf(const std::filesyst
node.layer_mask = layer_mask;
assert(renderer);
scene_loader loader(device, physical_device, queue, application::queue_family_index(), renderer->get_default_material());
scene_loader loader(device, physical_device, queue, queue_family_index, renderer->get_default_material());
loader.add_prefab(world, loader(path), entity);
+1 -1
View File
@@ -798,7 +798,7 @@ void scenes::lobby::on_focused()
// assert(std::ranges::all_of(views, [height](const XrViewConfigurationView & view) { return view.recommendedImageRectHeight == height; }));
renderer.emplace(device, physical_device, queue, commandpool);
loader.emplace(device, physical_device, queue, application::queue_family_index(), renderer->get_default_material());
loader.emplace(device, physical_device, queue, queue_family_index, renderer->get_default_material());
lobby_entity = load_gltf("ground.gltf", layer_lobby).first;
+1 -1
View File
@@ -399,7 +399,7 @@ void scenes::stream::on_focused()
height = views[0].recommendedImageRectHeight;
renderer.emplace(device, physical_device, queue, commandpool);
loader.emplace(device, physical_device, queue, application::queue_family_index(), renderer->get_default_material());
loader.emplace(device, physical_device, queue, queue_family_index, renderer->get_default_material());
std::string profile = controller_name();
input.emplace(