yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
625eb25d
16.3.0
1#version 400 core 2 3layout ( vertices = 4 ) out ; // ERROR 4layout ( quads , cw ) in ; 5layout ( triangles ) in ; // ERROR 6layout ( isolines ) in ; // ERROR 7 8layout ( ccw ) in ; // ERROR 9layout ( cw ) in ; 10 11layout ( fractional_odd_spacing ) in ; 12layout ( equal_spacing ) in ; // ERROR 13layout ( fractional_even_spacing ) in ; // ERROR 14 15layout ( point_mode ) in ; 16 17patch in vec4 patchIn ; 18patch out vec4 patchOut ; // ERROR 19 20void main () 21{ 22barrier () ; // ERROR 23 24int a = gl_MaxTessEvaluationInputComponents + 25gl_MaxTessEvaluationOutputComponents + 26gl_MaxTessEvaluationTextureImageUnits + 27gl_MaxTessEvaluationUniformComponents + 28gl_MaxTessPatchComponents + 29gl_MaxPatchVertices + 30gl_MaxTessGenLevel ; 31 32vec4 p = gl_in [ 1 ] . gl_Position ; 33float ps = gl_in [ 1 ] . gl_PointSize ; 34float cd = gl_in [ 1 ] . gl_ClipDistance [ 2 ] ; 35 36int pvi = gl_PatchVerticesIn ; 37int pid = gl_PrimitiveID ; 38vec3 tc = gl_TessCoord ; 39float tlo = gl_TessLevelOuter [ 3 ] ; 40float tli = gl_TessLevelInner [ 1 ] ; 41 42gl_Position = p ; 43gl_PointSize = ps ; 44gl_ClipDistance [ 2 ] = cd ; 45} 46 47smooth patch in vec4 badp1 ; // ERROR 48flat patch in vec4 badp2 ; // ERROR 49noperspective patch in vec4 badp3 ; // ERROR 50patch sample in vec3 badp4 ; // ERROR 51 52#extension GL_ARB_separate_shader_objects : enable 53 54in gl_PerVertex 55{ 56float gl_ClipDistance [ 1 ] ; 57} gl_in [] ; 58 59in gl_PerVertex // ERROR, second redeclaration of gl_in 60{ 61float gl_ClipDistance [ 1 ] ; 62} gl_in [] ; 63 64layout ( quads , cw ) out ; // ERROR 65layout ( triangles ) out ; // ERROR 66layout ( isolines ) out ; // ERROR 67layout ( cw ) out ; // ERROR 68layout ( fractional_odd_spacing ) out ; // ERROR 69layout ( equal_spacing ) out ; // ERROR 70layout ( fractional_even_spacing ) out ; // ERROR 71layout ( point_mode ) out ; // ERROR 72 73in vec2 ina ; // ERROR, not array 74in vec2 inb [] ; 75in vec2 inc [ 18 ] ; // ERROR, wrong size 76in vec2 ind [ gl_MaxPatchVertices ] ; 77 78in testbla { 79int f ; 80} bla ; // ERROR, not array 81 82in testblb { 83int f ; 84} blb [] ; 85 86in testblc { 87int f ; 88} blc [ 18 ] ; // ERROR wrong size 89 90in testbld { 91int f ; 92} bld [ gl_MaxPatchVertices ] ; 93 94layout ( location = 23 ) in vec4 ivla [] ; 95layout ( location = 24 ) in vec4 ivlb [] ; 96layout ( location = 24 ) in vec4 ivlc [] ; // ERROR 97 98layout ( location = 23 ) out vec4 ovla [ 2 ] ; 99layout ( location = 24 ) out vec4 ovlb [ 2 ] ; // ERROR 100 101in float gl_TessLevelOuter [ 4 ] ; // ERROR, can't redeclare 102 103patch in pinbn { 104int a ; 105} pinbi ; 106 107void devi () 108{ 109gl_DeviceIndex ; // ERROR, no extension 110gl_ViewIndex ; // ERROR, no extension 111} 112 113#ifdef GL_EXT_device_group 114#extension GL_EXT_device_group : enable 115#endif 116 117#ifdef GL_EXT_multiview 118#extension GL_EXT_multiview : enable 119#endif 120 121void devie () 122{ 123gl_DeviceIndex ; 124gl_ViewIndex ; 125}