gl: Add debug names to some objects

This commit is contained in:
kd-11 2026-03-07 03:12:18 +03:00 committed by kd-11
parent 4a51302c58
commit 728d84b1fe
3 changed files with 4 additions and 1 deletions

View file

@ -152,6 +152,8 @@ namespace gl
dst = data.get();
dst->properties_encoding = match_key;
m_temporary_surfaces.emplace_back(std::move(data));
dst->set_name(fmt::format("[Temp View] id=%u, fmt=0x%x", dst->id(), gcm_format));
}
dst->add_ref();

View file

@ -745,6 +745,7 @@ namespace gl
gl::upload_texture(cmd, section->get_raw_texture(), gcm_format, input_swizzled, subresource_layout);
section->get_raw_texture()->set_name(fmt::format("Raw Texture @0x%x", rsx_range.start));
section->last_write_tag = rsx::get_shared_tag();
return section;
}

View file

@ -411,7 +411,7 @@ namespace gl
auto result = view.get();
views.emplace(key, std::move(view));
result->set_name(fmt::format("%s_%x", name(), remap.encoded));
result->set_name(fmt::format("%s, remap=%x", name(), remap.encoded));
return result;
}