yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
e7b6de334
master
1// vk-push-constant.slang.glsl 2#version 450 3 4struct S_0 5{ 6vec4 v_0 ; 7}; 8 9layout (push_constant ) 10layout (std140 )uniform _S1 11{ 12vec4 v_0 ; 13}x_0 ; 14 15layout (binding = 0 ,set = 0 ) 16layout (std140 )uniform _S2 17{ 18vec4 v_0 ; 19}y_0 ; 20 21layout (location = 0 ) 22out vec4 main_0 ; 23 24void main () 25{ 26main_0 = x_0 .v_0 + y_0 .v_0 ; 27return ; 28}