yum-mirror/slang

Making it easier to work with shaders

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

Yong HeAdd GLSL Compatibility. (#3321)12f7237e4

master
293 B14 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage vertex -entry main -allow-glsl
2#version 310 es
3layout(location = 0) in highp vec4 a_position;
4
5void main()
6{
7    vec4 a = 0;
8    for (highp int i = 0; i < 5; i++)
9        a += vec4(i);
10    gl_Position = a;
11   
12    // CHECK: OpEntryPoint
13}
14