yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

rj123-nvError for in/out structs containing booleans (#3973)2e24222c

main
13.8 KiB208 linesraw
1330.frag
2ERROR: 0:27: 'block declaration' : cannot redeclare block:  gl_block
3ERROR: 0:31: 'gl_name' : identifiers starting with "gl_" are reserved 
4ERROR: 0:32: 'gl_i' : identifiers starting with "gl_" are reserved 
5ERROR: 0:35: 'gl_in' : no declaration found for redeclaration 
6ERROR: 0:39: 'gl_FragCoord' : cannot redeclare a non block as a block 
7ERROR: 0:44: 'non-literal layout-id value' : not supported for this version or the enabled extensions 
8ERROR: 0:44: 'layout-id value' : cannot be negative 
9ERROR: 0:45: 'non-literal layout-id value' : not supported for this version or the enabled extensions 
10ERROR: 0:46: 'layout-id value' : scalar integer expression required 
11ERROR: 0:46: 'location' : location is too large 
12ERROR: 0:47: 'non-literal layout-id value' : not supported for this version or the enabled extensions 
13ERROR: 0:48: 'non-literal layout-id value' : not supported for this version or the enabled extensions 
14ERROR: 0:52: 'f2' : cannot use layout qualifiers on structure members 
15ERROR: 0:57: 'location on block member' : not supported for this version or the enabled extensions 
16ERROR: 0:62: 'location on block member' : can only use in an in/out block 
17ERROR: 0:62: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions 
18ERROR: 0:60: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions 
19ERROR: 0:60: 'location' : cannot apply to uniform or buffer block 
20ERROR: 0:68: 'layout-id value' : cannot be negative 
21ERROR: 0:69: 'layout-id value' : cannot be negative 
22ERROR: 0:76: 'f2' : cannot use layout qualifiers on structure members 
23ERROR: 0:79: 'in' : cannot contain bool 
24ERROR: 0:91: 'location on block member' : can only use in an in/out block 
25ERROR: 0:91: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions 
26ERROR: 0:91: 'location' : overlapping use of location 3
27ERROR: 0:89: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions 
28ERROR: 0:89: 'location' : cannot apply to uniform or buffer block 
29ERROR: 0:94: 'location' : either the block needs a location, or all members need a location, or no members have a location 
30ERROR: 0:108: 'A' : cannot use layout qualifiers on structure members 
31ERROR: 0:119: 'location' : overlapping use of location 44
32ERROR: 0:122: 'index' : can only be used with an explicit location 
33ERROR: 0:124: 'location' : overlapping use of location 0
34ERROR: 0:125: 'index' : can only be used on an output 
35ERROR: 0:126: 'index' : can only be used on an output 
36ERROR: 0:126: 'location/component/index' : cannot declare a default, use a full declaration 
37ERROR: 0:127: 'location/component/index' : cannot declare a default, use a full declaration 
38ERROR: 0:128: 'output block' : not supported in this stage: fragment
39ERROR: 0:138: 'index' : value must be 0 or 1 
40ERROR: 0:140: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions 
41ERROR: 0:146: 'location' : cannot apply to uniform or buffer block 
42ERROR: 40 compilation errors.  No code generated.
43
44
45Shader version: 330
46Requested GL_ARB_enhanced_layouts
47Requested GL_ARB_explicit_uniform_location
48Requested GL_ARB_separate_shader_objects
49ERROR: node is still EOpNull!
500:8  Function Definition: main( ( global void)
510:8    Function Parameters: 
520:10    Sequence
530:10      move second child to first child ( temp 4-component vector of float)
540:10        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
550:10        'varyingVar' ( smooth in 4-component vector of float)
560:11      move second child to first child ( temp 4-component vector of float)
570:11        direct index ( temp 4-component vector of float FragData)
580:11          'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData)
590:11          Constant:
600:11            1 (const int)
610:11        'inVar' ( smooth in 4-component vector of float)
620:12      Sequence
630:12        move second child to first child ( temp int)
640:12          'buffer' ( temp int)
650:12          Constant:
660:12            4 (const int)
670:21  Function Definition: foo( ( global void)
680:21    Function Parameters: 
690:23    Sequence
700:23      Sequence
710:23        move second child to first child ( temp 4-component vector of float)
720:23          'c' ( temp 4-component vector of float)
730:23          gl_Color: direct index for structure ( in 4-component vector of float Color)
740:23            'anon@0' ( in block{ in 4-component vector of float Color gl_Color})
750:23            Constant:
760:23              2 (const uint)
770:24      move second child to first child ( temp 4-component vector of float)
780:24        'outVar' (layout( location=0 index=0) out 4-component vector of float)
790:24        'inVar' ( smooth in 4-component vector of float)
800:133  Function Definition: fooKeyMem( ( global void)
810:133    Function Parameters: 
820:135    Sequence
830:135      precise: direct index for structure ( global int)
840:135        'KeyMem' ( global structure{ global int precise})
850:135        Constant:
860:135          0 (const int)
870:152  Function Definition: testOverload( ( global void)
880:152    Function Parameters: 
890:153    Sequence
900:153      Sequence
910:153        move second child to first child ( temp float)
920:153          'overloadTest' ( temp float)
930:153          Constant:
940:153            42.000000
950:154      move second child to first child ( temp float)
960:154        'overloadTest' ( temp float)
970:154        smoothstep ( global float)
980:154          Constant:
990:154            0.000000
1000:154          Constant:
1010:154            1.000000
1020:154          'overloadTest' ( temp float)
1030:?   Linker Objects
1040:?     'inVar' ( smooth in 4-component vector of float)
1050:?     'outVar' (layout( location=0 index=0) out 4-component vector of float)
1060:?     'varyingVar' ( smooth in 4-component vector of float)
1070:?     'anon@0' ( in block{ in 4-component vector of float Color gl_Color})
1080:?     'gl_name' ( in block{ in int gl_i})
1090:?     'start' ( const int)
1100:?       6 (const int)
1110:?     'v1' ( smooth in 4-component vector of float)
1120:?     'v2' (layout( location=8) smooth in 4-component vector of float)
1130:?     'v20' ( smooth in 4-component vector of float)
1140:?     'v21' (layout( location=60) smooth in float)
1150:?     'v22' (layout( location=2) smooth in float)
1160:?     'anon@1' ( in block{layout( location=1) in float f1, layout( location=3) in float f2})
1170:?     'uinst' (layout( location=1 column_major shared) uniform block{layout( column_major shared) uniform float f1, layout( location=3 column_major shared) uniform float f2})
1180:?     'v3' (layout( location=6) smooth in 4-component vector of float)
1190:?     'v4' ( smooth in 4-component vector of float)
1200:?     'v5' ( smooth in 4-component vector of float)
1210:?     'v6' (layout( location=30) smooth in 4-component vector of float)
1220:?     'v23' (layout( location=61) smooth in float)
1230:?     'v24' (layout( location=62) smooth in float)
1240:?     'ininst2' ( in block{layout( location=28) in bool b1, layout( location=29) in float f1, layout( location=25) in float f2, layout( location=26) in 4-component vector of float f3, layout( location=21) in structure{ global float f1,  temp float f2} s2, layout( location=23) in 4-component vector of float f4, layout( location=24) in 4-component vector of float f5})
1250:?     'uinst2' (layout( location=13 column_major shared) uniform block{layout( column_major shared) uniform float f1, layout( location=3 column_major shared) uniform float f2})
1260:?     'in3' ( in block{ in float f1, layout( location=40) in float f2})
1270:?     'in4' ( in block{layout( location=50) in float f1, layout( location=51) in float f2})
1280:?     's' (layout( location=33) smooth in structure{ global 3-component vector of float a,  global 2X2 matrix of float b,  global 2-element array of 4-component vector of float c,  temp 2-component vector of float A})
1290:?     'anon@2' ( in block{layout( location=44) in 4-component vector of float d, layout( location=45) in 4-component vector of float e, layout( location=47) in 4-component vector of float f, layout( location=48) in 4-component vector of float g, layout( location=41) in 4-component vector of float h, layout( location=42) in 4-component vector of float i, layout( location=43) in 4-component vector of float j, layout( location=44) in 4-component vector of float k})
1300:?     'outVar2' (layout( location=4095 index=0) out 4-component vector of float)
1310:?     'outVar3' (layout( location=0 index=1) out 4-component vector of float)
1320:?     'outVar4' (layout( location=0 index=1) out 4-component vector of float)
1330:?     'indexIn' (layout( location=27 index=0) smooth in 4-component vector of float)
1340:?     'indexBlockI' (layout( location=26 index=0) out block{ out int a})
1350:?     'precise' ( global int)
1360:?     'KeyMem' ( global structure{ global int precise})
1370:?     'outIndex2' (layout( location=28 index=0) out 4-component vector of float)
1380:?     'ucolor0' (layout( location=4) uniform 4-component vector of float)
1390:?     'ucolor1' (layout( location=5) uniform 4-component vector of float)
1400:?     'colorsBuffer' (layout( location=6 column_major shared) uniform block{layout( column_major shared) uniform 128-element array of 4-component vector of float colors})
141
142
143Linked fragment stage:
144
145ERROR: Linking fragment stage: Cannot use gl_FragColor or gl_FragData when using user-defined outputs
146ERROR: Linking fragment stage: Cannot use both gl_FragColor and gl_FragData
147
148Shader version: 330
149Requested GL_ARB_enhanced_layouts
150Requested GL_ARB_explicit_uniform_location
151Requested GL_ARB_separate_shader_objects
152ERROR: node is still EOpNull!
1530:8  Function Definition: main( ( global void)
1540:8    Function Parameters: 
1550:10    Sequence
1560:10      move second child to first child ( temp 4-component vector of float)
1570:10        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
1580:10        'varyingVar' ( smooth in 4-component vector of float)
1590:11      move second child to first child ( temp 4-component vector of float)
1600:11        direct index ( temp 4-component vector of float FragData)
1610:11          'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData)
1620:11          Constant:
1630:11            1 (const int)
1640:11        'inVar' ( smooth in 4-component vector of float)
1650:12      Sequence
1660:12        move second child to first child ( temp int)
1670:12          'buffer' ( temp int)
1680:12          Constant:
1690:12            4 (const int)
1700:?   Linker Objects
1710:?     'inVar' ( smooth in 4-component vector of float)
1720:?     'outVar' (layout( location=0 index=0) out 4-component vector of float)
1730:?     'varyingVar' ( smooth in 4-component vector of float)
1740:?     'anon@0' ( in block{ in 4-component vector of float Color gl_Color})
1750:?     'gl_name' ( in block{ in int gl_i})
1760:?     'start' ( const int)
1770:?       6 (const int)
1780:?     'v1' ( smooth in 4-component vector of float)
1790:?     'v2' (layout( location=8) smooth in 4-component vector of float)
1800:?     'v20' ( smooth in 4-component vector of float)
1810:?     'v21' (layout( location=60) smooth in float)
1820:?     'v22' (layout( location=2) smooth in float)
1830:?     'anon@1' ( in block{layout( location=1) in float f1, layout( location=3) in float f2})
1840:?     'uinst' (layout( location=1 column_major shared) uniform block{layout( column_major shared) uniform float f1, layout( location=3 column_major shared) uniform float f2})
1850:?     'v3' (layout( location=6) smooth in 4-component vector of float)
1860:?     'v4' ( smooth in 4-component vector of float)
1870:?     'v5' ( smooth in 4-component vector of float)
1880:?     'v6' (layout( location=30) smooth in 4-component vector of float)
1890:?     'v23' (layout( location=61) smooth in float)
1900:?     'v24' (layout( location=62) smooth in float)
1910:?     'ininst2' ( in block{layout( location=28) in bool b1, layout( location=29) in float f1, layout( location=25) in float f2, layout( location=26) in 4-component vector of float f3, layout( location=21) in structure{ global float f1,  temp float f2} s2, layout( location=23) in 4-component vector of float f4, layout( location=24) in 4-component vector of float f5})
1920:?     'uinst2' (layout( location=13 column_major shared) uniform block{layout( column_major shared) uniform float f1, layout( location=3 column_major shared) uniform float f2})
1930:?     'in3' ( in block{ in float f1, layout( location=40) in float f2})
1940:?     'in4' ( in block{layout( location=50) in float f1, layout( location=51) in float f2})
1950:?     's' (layout( location=33) smooth in structure{ global 3-component vector of float a,  global 2X2 matrix of float b,  global 2-element array of 4-component vector of float c,  temp 2-component vector of float A})
1960:?     'anon@2' ( in block{layout( location=44) in 4-component vector of float d, layout( location=45) in 4-component vector of float e, layout( location=47) in 4-component vector of float f, layout( location=48) in 4-component vector of float g, layout( location=41) in 4-component vector of float h, layout( location=42) in 4-component vector of float i, layout( location=43) in 4-component vector of float j, layout( location=44) in 4-component vector of float k})
1970:?     'outVar2' (layout( location=4095 index=0) out 4-component vector of float)
1980:?     'outVar3' (layout( location=0 index=1) out 4-component vector of float)
1990:?     'outVar4' (layout( location=0 index=1) out 4-component vector of float)
2000:?     'indexIn' (layout( location=27 index=0) smooth in 4-component vector of float)
2010:?     'indexBlockI' (layout( location=26 index=0) out block{ out int a})
2020:?     'precise' ( global int)
2030:?     'KeyMem' ( global structure{ global int precise})
2040:?     'outIndex2' (layout( location=28 index=0) out 4-component vector of float)
2050:?     'ucolor0' (layout( location=4) uniform 4-component vector of float)
2060:?     'ucolor1' (layout( location=5) uniform 4-component vector of float)
2070:?     'colorsBuffer' (layout( location=6 column_major shared) uniform block{layout( column_major shared) uniform 128-element array of 4-component vector of float colors})
208