This command will return the maximum texture width allowed by the current 3D device.

Syntax: 
Return Integer=GET MAXIMUM TEXTURE WIDTH()