mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
[naga glsl-in] Fix double overload for dot/reflect/distance/ldexp.
The first argument of the `dot`, `reflect`, `distance`, and `ldexp` GLSL builtin functions may be either a float or a double, and thus the argument type registered by `inject_common_builtin` must depend on the `float_width` argument; it cannot simply be `Scalar::F32`. Introduced by #4673.
This commit is contained in:
1 parent
cf2405ca39
commit
324ec4a5ec
1 file changed
+1
-1
@@ -1257,7 +1257,7 @@ fn inject_common_builtin(
|
||||
|
||||
declaration
|
||||
.overloads
|
||||
.push(module.add_builtin(vec![ty(Scalar::F32), ty(second_scalar)], fun))
|
||||
.push(module.add_builtin(vec![ty(float_scalar), ty(second_scalar)], fun))
|
||||
}
|
||||
}
|
||||
"transpose" => {
|
||||
|
||||
Reference in new issue
Block a user