Specialise std::hash for old gcc/clang

This commit is contained in:
baldurk
2025-02-10 18:28:53 +00:00
parent 108987fdd9
commit 98ce506da5
@@ -40,6 +40,16 @@ RDOC_CONFIG(rdcstr, Vulkan_Debug_PSDebugDumpDirPath, "",
RDOC_CONFIG(bool, Vulkan_Debug_ShaderDebugLogging, false,
"Output verbose debug logging messages when debugging shaders.");
// needed for old linux compilers
namespace std
{
template <>
struct hash<ShaderBuiltin>
{
std::size_t operator()(const ShaderBuiltin &e) const { return size_t(e); }
};
}
// should match the descriptor set layout created in ShaderDebugData::Init()
enum class ShaderDebugBind
{