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
328 B28 linesraw
1// vk-push-constant.slang.glsl
2#version 450
3
4struct S_0
5{
6    vec4 v_0;
7};
8
9layout(push_constant)
10layout(std140) uniform _S1
11{
12    vec4 v_0;
13} x_0;
14
15layout(binding = 0, set = 0)
16layout(std140) uniform _S2
17{
18    vec4 v_0;
19} y_0;
20
21layout(location = 0)
22out vec4 main_0;
23
24void main()
25{
26    main_0 = x_0.v_0 + y_0.v_0;
27    return;
28}