2023-02-21 02:03:01 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "overlay_message.h"
|
|
|
|
|
#include "overlay_loading_icon.hpp"
|
|
|
|
|
|
|
|
|
|
namespace rsx
|
|
|
|
|
{
|
|
|
|
|
namespace overlays
|
|
|
|
|
{
|
|
|
|
|
static std::shared_ptr<loading_icon24> s_shader_loading_icon24;
|
|
|
|
|
static std::shared_ptr<loading_icon24> s_ppu_loading_icon24;
|
|
|
|
|
|
|
|
|
|
void show_shader_compile_notification()
|
|
|
|
|
{
|
|
|
|
|
if (!s_shader_loading_icon24)
|
|
|
|
|
{
|
|
|
|
|
// Creating the icon requires FS read, so it is important to cache it
|
|
|
|
|
s_shader_loading_icon24 = std::make_shared<loading_icon24>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
queue_message(
|
|
|
|
|
localized_string_id::RSX_OVERLAYS_COMPILING_SHADERS,
|
|
|
|
|
5'000'000,
|
|
|
|
|
{},
|
2024-11-04 21:53:34 +01:00
|
|
|
message_pin_location::bottom_left,
|
2023-02-21 02:37:53 +01:00
|
|
|
s_shader_loading_icon24,
|
|
|
|
|
true);
|
2023-02-21 02:03:01 +01:00
|
|
|
}
|
|
|
|
|
|
2024-05-30 08:42:44 +02:00
|
|
|
std::shared_ptr<atomic_t<u32>> show_ppu_compile_notification()
|
2023-02-21 02:03:01 +01:00
|
|
|
{
|
|
|
|
|
if (!s_ppu_loading_icon24)
|
|
|
|
|
{
|
|
|
|
|
// Creating the icon requires FS read, so it is important to cache it
|
|
|
|
|
s_ppu_loading_icon24 = std::make_shared<loading_icon24>();
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-30 08:42:44 +02:00
|
|
|
std::shared_ptr<atomic_t<u32>> refs = std::make_shared<atomic_t<u32>>(1);
|
|
|
|
|
|
2023-02-21 02:03:01 +01:00
|
|
|
queue_message(
|
|
|
|
|
localized_string_id::RSX_OVERLAYS_COMPILING_PPU_MODULES,
|
2024-05-30 08:42:44 +02:00
|
|
|
20'000'000,
|
|
|
|
|
refs,
|
2024-11-04 21:53:34 +01:00
|
|
|
message_pin_location::bottom_left,
|
2023-02-21 02:37:53 +01:00
|
|
|
s_ppu_loading_icon24,
|
|
|
|
|
true);
|
2024-05-30 08:42:44 +02:00
|
|
|
|
|
|
|
|
return refs;
|
2023-02-21 02:03:01 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|