Is texture the same as texture2D?

Whats the difference between texture and texture2D in GLSL shading? Because on macOS, trying to run a shader with texture2D just crashes UPBGE due to a weird issue whereas it should be a warning outputted to the console rather than a full-blown error.
I am just asking what does texture in GLSL do in place of texture2D?

I know definitely that the GPU “errors” outputted to the console when a shader with texture2D and UPBGE crashing when used in tandem with macOS is definitely a bug.