Skip to content

Instantly share code, notes, and snippets.

@sassembla
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sassembla/9595270 to your computer and use it in GitHub Desktop.
Save sassembla/9595270 to your computer and use it in GitHub Desktop.
// shader error & warning
{
// Shader error in 'Custom/TestShader': Parse error: syntax error at line 9
"Shader error in [']Custom/(.*)[']: (.*) at line ([0-9].*)": {
"injects": {
"groups[0]": "name",
"groups[1]": "message",
"groups[2]": "line"
},
"selectors": [
{
"showAtLog<-message": {
}
},
{
"appendRegion<-name, line, message": {
"condition": "keyword"
}
}
]
}
},
{
// warning in runtime. line base will not be match. set to Line:1 forcely.
// Shader warning in 'Custom/TestShader': GLSL vertex shader: 403: ERROR: '[' : array index out of range '20' at line 9
// Shader warning in 'Custom/TestShader': Program 'frag_surf', array index out of bounds (compiling for d3d11_9x) at line 7
"Shader warning in [']Custom/(.*)[']: (.*)": {
// force injection
"lineSource": 1,
"injects": {
"groups[0]": "name",
"groups[1]": "message",
// "groups[2]": "line" // ignore.
"lineSource": "line"
},
"selectors": [
{
"showAtLog<-message": {
}
},
{
"appendRegion<-name, line, message": {
"condition": "keyword"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment