Better shader compilation error reporting (#3523)
Better shader compilation error reporting (#3523)

* better shader compilation error reporting

* Update src/graphics/graphics-device.js

Co-authored-by: Will Eastcott <37d41699bdee4fcb969ca499eb0f8b82c60d59cc@playcanvas.com>

* Update src/graphics/graphics-device.js

Co-authored-by: Will Eastcott <37d41699bdee4fcb969ca499eb0f8b82c60d59cc@playcanvas.com>

* Update graphics-device.js

* add error object with more information

* generalise function

Co-authored-by: Will Eastcott <37d41699bdee4fcb969ca499eb0f8b82c60d59cc@playcanvas.com>
playcanvas/engine,MicroWorldwide/PlayCanvas,playcanvas/engine,MicroWorldwide/PlayCanvas