Add global helper for naming D3D12 objects with normal strings

This commit is contained in:
baldurk
2025-10-16 00:21:57 +01:00
parent 384b952625
commit 1c970a7868
+6
View File
@@ -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());
}