Fix check for nan/inf in SPIR-V shader debugging

This commit is contained in:
baldurk
2021-01-25 16:51:59 +00:00
parent 1c37bfa02e
commit 176ad2313d
@@ -43,7 +43,7 @@ static bool ContainsNaNInf(const ShaderVariable &var)
for(int c = 0; c < count; c++)
{
#undef _IMPL
#define _IMPL(T) RDCISINF(comp<T>(var, c)) || RDCISNAN(comp<T>(var, c))
#define _IMPL(T) ret |= RDCISINF(comp<T>(var, c)) || RDCISNAN(comp<T>(var, c))
IMPL_FOR_FLOAT_TYPES(_IMPL);
}