mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
devtools: add search to shader list
This commit is contained in:
parent
f299ba3b57
commit
0e2a175633
@ -229,9 +229,15 @@ void ShaderList::Draw() {
|
||||
return;
|
||||
}
|
||||
|
||||
InputTextEx("##search_shader", "Search by name", search_box, sizeof(search_box), {},
|
||||
ImGuiInputTextFlags_None, nullptr, nullptr);
|
||||
|
||||
auto width = GetContentRegionAvail().x;
|
||||
int i = 0;
|
||||
for (const auto& shader : DebugState.shader_dump_list) {
|
||||
if (search_box[0] != '\0' && !shader.name.contains(search_box)) {
|
||||
continue;
|
||||
}
|
||||
char name[128];
|
||||
if (shader.is_patched) {
|
||||
snprintf(name, sizeof(name), "%s (PATCH ON)", shader.name.c_str());
|
||||
|
@ -31,6 +31,8 @@ class ShaderList {
|
||||
|
||||
std::vector<Selection> open_shaders{};
|
||||
|
||||
char search_box[128]{};
|
||||
|
||||
public:
|
||||
bool open = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user