Implement implicit conversions on function return expressions to the function's type.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26501 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
2ea882fdae
commit
8a1a4a7a8b
10 changed files with 66 additions and 30 deletions
|
|
@ -114,6 +114,12 @@ ERROR: node is still EOpNull!
|
|||
0:44 0 (const int)
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:52 Function Definition: foo5( (float)
|
||||
0:52 Function Parameters:
|
||||
0:54 Sequence
|
||||
0:54 Branch: Return with expression
|
||||
0:54 Convert int to float (float)
|
||||
0:54 'i' (int)
|
||||
0:? Linker Objects
|
||||
0:? 'i' (int)
|
||||
0:? 'gl_in' (in 3-element array of block{in 4-component vector of float gl_Position, in float gl_PointSize, in implicitly-sized array of float gl_ClipDistance})
|
||||
|
|
@ -235,6 +241,12 @@ ERROR: node is still EOpNull!
|
|||
0:44 0 (const int)
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:52 Function Definition: foo5( (float)
|
||||
0:52 Function Parameters:
|
||||
0:54 Sequence
|
||||
0:54 Branch: Return with expression
|
||||
0:54 Convert int to float (float)
|
||||
0:54 'i' (int)
|
||||
0:? Linker Objects
|
||||
0:? 'i' (int)
|
||||
0:? 'gl_in' (in 3-element array of block{in 4-component vector of float gl_Position, in float gl_PointSize, in 1-element array of float gl_ClipDistance})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue