yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
4da479aa
main
1#version 450 2 3layout (constant_id = 200 )const float scf1 = 1.0 ; 4layout (constant_id = 201 )const bool scbt = true; 5layout (constant_id = 202 )const int sci2 = 2 ; 6 7void main () 8{ 9bool (scf1 );// not a spec-const 10bool (scbt );// spec-const 11bool (sci2 );// spec-const 12 13float (scf1 );// not a spec-const 14float (scbt );// not a spec-const 15float (sci2 );// not a spec-const 16 17int (scf1 );// not a spec-const 18int (scbt );// spec-const 19int (sci2 );// spec-const 20 21scf1 * scf1 ;// not a spec-const 22scbt || scbt ;// spec-const 23sci2 * sci2 ;// spec-const 24scf1 + sci2 ;// implicit conversion not a spec-const 25 26- scf1 ;// not a spec-const 27 !scbt ;// spec-const 28- sci2 ;// spec-const 29 30scf1 > scf1 ;// not a spec-const 31sci2 > sci2 ;// spec-const 32 33scf1 != scf1 ;// not a spec-const 34scbt != scbt ;// spec-const 35sci2 != sci2 ;// spec-const 36 37ivec2 (sci2 ,sci2 );// spec-const 38ivec2 [2 ](ivec2 (sci2 ,sci2 ),ivec2 (sci2 ,sci2 ));// not a spec-const 39 40vec2 (scf1 ,scf1 );// spec-const 41vec2 [2 ](vec2 (scf1 ,scf1 ),vec2 (scf1 ,scf1 ));// spec-const 42}