Last active
August 29, 2015 13:57
-
-
Save sassembla/9595270 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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