mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Add global helper for naming D3D12 objects with normal strings
This commit is contained in:
@@ -319,3 +319,9 @@ D3D12_INDIRECT_ARGUMENT_DESC dispatchArg();
|
||||
exit(1); \
|
||||
} \
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void setName(T obj, const std::string &name)
|
||||
{
|
||||
obj->SetName(UTF82Wide(name).c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user