yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
0e4784438
master
1// vk-invert-y.slang 2 3// Test to confirm that '-f-vk-invert-y' option works as expected. 4 5//TEST:SIMPLE(filecheck=CHECK):-target glsl -entry main -stage vertex -profile vs_5_1 -fvk-invert-y 6 7struct VOutput 8{ 9 float4 v : SV_Position; 10} 11 12 13VOutput main() 14{ 15 VOutput output; 16 output.v = float4(1, 2, 3, 4); 17 18 // CHECK: [[TMP:[_A-Za-z0-9]+]].y = - output_0.v_0.y; 19 // CHECK: gl_Position = [[TMP]]; 20 return output; 21}