yum-mirror/slang

Making it easier to work with shaders

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

Yong He[SPIRV] Support `globallycoherent` and `[vk::index()]`. (#3488)e7b6de334

master
570 B40 linesraw
1#version 450
2layout(row_major) uniform;
3layout(row_major) buffer;
4struct F_0
5{
6    vec4 v0_0;
7    vec2 v1_0;
8};
9
10float F_get_0(F_0 this_0)
11{
12    return this_0.v0_0.x + this_0.v1_0.x;
13}
14
15float E_get_0()
16{
17    return 1.0;
18}
19
20layout(location = 0)
21in vec3 vIn_p0_0;
22
23layout(location = 1)
24in vec4 vIn_field_v0_0;
25
26layout(location = 2)
27in vec2 _S3;
28
29struct VOut_0
30{
31    vec4 projPos_0;
32};
33void main()
34{
35    F_0 _S4 = { vIn_field_v0_0, _S3 };
36    VOut_0 vout_0;
37    vout_0.projPos_0 = vec4(vIn_p0_0, F_get_0(_S4) + E_get_0());
38    gl_Position = vout_0.projPos_0;
39    return;
40}