Devtools IV (#1910)

* devtools: fix popen in non-windows environment

* devtools: fix frame crash assertion when hidden

* devtools: add search to shader list

* devtools: add copy name to shader list

* devtools: frame dump: search by shader name
This commit is contained in:
Vinicius Rangel
2024-12-26 18:08:47 -03:00
committed by GitHub
parent 0bb1c05aff
commit edc027a8bc
14 changed files with 159 additions and 55 deletions

View File

@@ -117,7 +117,7 @@ static bool IsDrawCall(AmdGpu::PM4ItOpcode opcode) {
inline std::optional<std::string> exec_cli(const char* cli) {
std::array<char, 64> buffer{};
std::string output;
const auto f = popen(cli, "rt");
const auto f = popen(cli, "r");
if (!f) {
pclose(f);
return {};