mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add a ToQStr overload for rdctype::str
This commit is contained in:
@@ -140,11 +140,18 @@ struct ToStr
|
||||
// QString everywhere.
|
||||
|
||||
template <typename T>
|
||||
QString ToQStr(const T &el)
|
||||
inline QString ToQStr(const T &el)
|
||||
{
|
||||
return QString::fromStdString(ToStr::Get(el));
|
||||
}
|
||||
|
||||
// overload for rdctype::str
|
||||
template <>
|
||||
inline QString ToQStr(const rdctype::str &el)
|
||||
{
|
||||
return QString::fromUtf8(el.elems, el.count);
|
||||
}
|
||||
|
||||
// overload for a couple of things that need to know the pipeline type when converting
|
||||
QString ToQStr(const ResourceUsage usage, const GraphicsAPI apitype);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user