yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
6e33b787
main
1#version 400 2 3void main () 4{ 5int o00 = 00 ; 6int o000 = 000 ; 7int o0000 = 0000 ; 8int o5 = 05 ; 9int o05 = 005 ; 10int o006 = 0006 ; 11int o7 = 07 ; 12int o58 = 072 ; 13int omax = 037777777777 ; 14int o8 = 08 ;// ERROR 15int o08 = 008 ;// ERROR 16int o009 = 0009 ;// ERROR 17int obig = 07324327323472347234 ;// ERROR 18int omax1 = 040000000000 ;// ERROR 19 20uint uo5 = 05u ; 21uint uo6 = 06u ; 22uint uo7 = 07u ; 23uint uo8 = 08u ;// ERROR 24uint uo9 = 09u ;// ERROR 25 26int h0 = 0x0 ; 27int h00 = 0x00 ; 28int h000 = 0x000 ; 29int h1 = 0x1 ; 30int h2 = 0x00000002 ; 31int h300 = 0x000300 ; 32int hABCDEF = 0xAbCdEF ; 33int hFFFFFFFF = 0xFFFFFFFF ; 34int h12345678 = 0xBC614E ; 35int hToBeOrNotToBe = 0x2b | ~0x2B ; 36 37uint uh0 = 0x0u ; 38uint uhg = (0xcu ); 39uint uh000 = 0x000u ; 40uint uh1 = 0x1u ; 41uint uh2 = 0x00000002u ; 42uint uh300 = 0x000300u ; 43uint uhABCDEF = 0xAbCdEFu ; 44uint uhFFFFFFFF = 0xFFFFFFFFu ; 45uint uh12345678 = 0xBC614Eu ; 46uint uhToBeOrNotToBe = 0x2bu | ~0x2BU ; 47 48//int he1 = 0xG; // ERROR 49int he2 = 0 x ;// ERROR 50int hbig = 0xFFFFFFFF1 ;// ERROR 51 52float f1 = 1.0 ; 53float f2 = 2. ; 54float f3 = 3e0 ; 55float f4 = 40e-1 ; 56float f5 = 05. ; 57float f6 = 006. ; 58float f7 = .7e1 ; 59float f8 = 08e0 ; 60float f9 = .9e+1 ; 61float f10 = 10.0 ; 62float f11 = .011e+3 ; 63float f12 = .0012e4 ; 64float f543 = 000000543. ; 65float f6789 = 00006789. ; 66float f88 = 0000088. ; 67 68float g1 = 5.3876e4 ; 69float g2 = 4000000000e-11 ; 70float g3 = 1e+5 ; 71float g4 = 7.321E-3 ; 72float g5 = 3.2E+4 ; 73float g6 = 0.5e-5 ; 74float g7 = 0.45 ; 75float g8 = 6.e10 ; 76 77double gf1 = 1.0lf ; 78double gf2 = 2.Lf ; 79double gf3 = .3e1lF ; 80double gf4 = .4e1LF ; 81float gf5 = 5.f ; 82float gf6 = 6.F ; 83 84//float e1 = 1..; // ERROR 85//float e2 = 2.l; // ERROR 86//float e3 = ..3; // ERROR 87//float e4 = 4ee1; // ERROR 88float e5 = 5f ;// ERROR 89} 90 91layout (location = 2 )out vec4 c2 ; 92layout (location = 3u )out vec4 c3 ; 93layout (location = 04 )out vec4 c4 ; 94layout (location = 005u )out vec4 c5 ; 95layout (location = 0x6 )out vec4 c6 ; 96layout (location = 0x7u )out vec4 c7 ; 97 98uint g1 = 4294967296u ;// ERROR, too big 99uint g2 = 4294967295u ; 100uint g3 = 4294967294u ; 101int g4 = 4294967296 ;// ERROR, too big 102int g5 = 4294967295 ; 103int g6 = 4294967294 ; 104float inf1 = -1. #INF ; 105float inf2 = 1. #INF ; 106float inf3 = +1. #INF ;