Metal: Fix MSL compilation warning

This commit is contained in:
Clément Foucault
2023-05-25 09:24:53 +02:00
parent 21b2393eb2
commit 0e7b81dd32

View File

@@ -1454,7 +1454,7 @@ template<typename T> T mix(T a, T b, MTLBOOL mask)
return (mask) ? b : a;
}
template<typename T, unsigned int Size> bool is_zero(vec<T, Size> a)
template<typename T, int Size> bool is_zero(vec<T, Size> a)
{
for (int i = 0; i < Size; i++) {
if (a[i] != T(0)) {