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
548 B37 linesraw
1//dual-source-blending.slang.glsl
2#version 450
3
4layout(row_major) uniform;
5layout(row_major) buffer;
6
7layout(location = 0)
8out vec4 main_a_0;
9
10layout(location = 0, index = 1)
11out vec4 main_b_0;
12
13layout(location = 0)
14in vec4 v_0;
15
16struct FragmentOutput_0
17{
18    vec4 a_0;
19    vec4 b_0;
20};
21
22void main()
23{
24    const vec4 _S1 = vec4(0.0, 0.0, 0.0, 0.0);
25    FragmentOutput_0 f_0;
26
27    f_0.a_0 = _S1;
28
29    f_0.b_0 = _S1;
30    f_0.a_0 = v_0;
31    f_0.b_0 = v_0;
32    FragmentOutput_0 _S2 = f_0;
33    main_a_0 = f_0.a_0;
34    main_b_0 = _S2.b_0;
35
36    return;
37}