Support line-continuation (backslash before newline) for tokens and one-line comments in the preprocessor.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22168 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
e5f80b8054
commit
d3f85891a7
4 changed files with 43 additions and 9 deletions
|
|
@ -13,7 +13,7 @@ still in a comment
|
|||
|
||||
// a different comment
|
||||
#version 430 core
|
||||
varying vec4 v;
|
||||
in vec4 v;
|
||||
void main() {}
|
||||
|
||||
|
||||
|
|
|
|||
14
Test/lineContinuation.vert
Normal file
14
Test/lineContinuation.vert
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#version 300 es
|
||||
|
||||
// this file cont\
|
||||
ains no errors
|
||||
|
||||
float f\
|
||||
oo; // same as 'float foo;'
|
||||
|
||||
#define MAIN void main() \
|
||||
{ \
|
||||
gl_Position = vec4(foo); \
|
||||
}
|
||||
|
||||
MAIN
|
||||
|
|
@ -42,3 +42,4 @@ tokenLength.vert
|
|||
400.frag
|
||||
420.vert
|
||||
430scope.vert
|
||||
lineContinuation.vert
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue