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:
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.
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue