Add link validation infrastructure for multiple compilation units per stage. Includes a new, straightforward, C++ interface to the front end.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22927 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
2f1eb37d82
commit
69f4b517c2
24 changed files with 655 additions and 161 deletions
33
Test/baseResults/mains1.frag.out
Normal file
33
Test/baseResults/mains1.frag.out
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
mains1.frag
|
||||
|
||||
0:3Function Definition: main( (void)
|
||||
0:3 Function Parameters:
|
||||
|
||||
mains2.frag
|
||||
|
||||
0:3Function Definition: main( (void)
|
||||
0:3 Function Parameters:
|
||||
|
||||
noMain1.geom
|
||||
ERROR: #version: geometry shaders require non-es profile and version 150 or above
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
0:3Function Definition: foo( (void)
|
||||
0:3 Function Parameters:
|
||||
|
||||
noMain2.geom
|
||||
|
||||
0:3Function Definition: bar( (void)
|
||||
0:3 Function Parameters:
|
||||
|
||||
|
||||
Linked geometry stage:
|
||||
|
||||
ERROR: Missing entry point: Each stage requires one "void main()" entry point
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
ERROR: Too many entry points: Each stage can have at most one "void main()" entry point.
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue