Remove application::queue_family_index()
This commit is contained in:
@@ -348,11 +348,6 @@ public:
|
|||||||
return instance().xr_instance.now();
|
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()
|
static thread_safe<vk::raii::Queue> & get_queue()
|
||||||
{
|
{
|
||||||
return instance().vk_queue;
|
return instance().vk_queue;
|
||||||
|
|||||||
@@ -345,9 +345,9 @@ imgui_context::imgui_context(
|
|||||||
|
|
||||||
ImGui_ImplVulkan_InitInfo init_info = {
|
ImGui_ImplVulkan_InitInfo init_info = {
|
||||||
.Instance = *application::get_vulkan_instance(),
|
.Instance = *application::get_vulkan_instance(),
|
||||||
.PhysicalDevice = *application::get_physical_device(),
|
.PhysicalDevice = *physical_device,
|
||||||
.Device = *application::get_device(),
|
.Device = *device,
|
||||||
.QueueFamily = application::queue_family_index(),
|
.QueueFamily = queue_family_index,
|
||||||
.Queue = *queue.get_unsafe(),
|
.Queue = *queue.get_unsafe(),
|
||||||
.RenderPass = *renderpass,
|
.RenderPass = *renderpass,
|
||||||
.MinImageCount = 2,
|
.MinImageCount = 2,
|
||||||
|
|||||||
+1
-1
@@ -441,7 +441,7 @@ std::pair<entt::entity, components::node &> scene::load_gltf(const std::filesyst
|
|||||||
node.layer_mask = layer_mask;
|
node.layer_mask = layer_mask;
|
||||||
|
|
||||||
assert(renderer);
|
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);
|
loader.add_prefab(world, loader(path), entity);
|
||||||
|
|
||||||
|
|||||||
@@ -798,7 +798,7 @@ void scenes::lobby::on_focused()
|
|||||||
// assert(std::ranges::all_of(views, [height](const XrViewConfigurationView & view) { return view.recommendedImageRectHeight == height; }));
|
// assert(std::ranges::all_of(views, [height](const XrViewConfigurationView & view) { return view.recommendedImageRectHeight == height; }));
|
||||||
|
|
||||||
renderer.emplace(device, physical_device, queue, commandpool);
|
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;
|
lobby_entity = load_gltf("ground.gltf", layer_lobby).first;
|
||||||
|
|
||||||
|
|||||||
@@ -399,7 +399,7 @@ void scenes::stream::on_focused()
|
|||||||
height = views[0].recommendedImageRectHeight;
|
height = views[0].recommendedImageRectHeight;
|
||||||
|
|
||||||
renderer.emplace(device, physical_device, queue, commandpool);
|
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();
|
std::string profile = controller_name();
|
||||||
input.emplace(
|
input.emplace(
|
||||||
|
|||||||
Reference in New Issue
Block a user