mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
Add helper to set wide-string name on objects
This commit is contained in:
@@ -330,3 +330,10 @@ inline void SetDebugName(T pObj, const char *name)
|
||||
if(pObj)
|
||||
pObj->SetPrivateData(WKPDID_D3DDebugObjectName, (UINT)strlen(name), name);
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline void SetDebugName(T pObj, const wchar_t *name)
|
||||
{
|
||||
if(pObj)
|
||||
pObj->SetPrivateData(WKPDID_D3DDebugObjectNameW, UINT(wcslen(name) * sizeof(wchar_t)), name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user