Vulkan: Fix GLSL compilation errors.

Recent changes in our GLSL libraries didn't compile on Vulkan. This
change reverts a compile directive that was removed, but required
in order to compile using the Vulkan backend.
This commit is contained in:
Jeroen Bakker 2023-01-30 10:53:20 +01:00
parent 2ff08d6d9c
commit d0f55aa671
Notes: blender-bot 2023-02-14 07:36:17 +01:00
Referenced by commit 0da74d3ee9, GPU: Fix GLSL compilation on OpenGL backend.
1 changed files with 2 additions and 0 deletions

View File

@ -469,6 +469,7 @@ mat4x4 invert(mat4x4 mat, out bool r_success)
return r_success ? inverse(mat) : mat4x4(0.0);
}
# ifdef GPU_METAL
vec2 normalize(vec2 a)
{
return a * inversesqrt(length_squared(a));
@ -481,6 +482,7 @@ vec4 normalize(vec4 a)
{
return a * inversesqrt(length_squared(a));
}
# endif
mat2x2 normalize(mat2x2 mat)
{