yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
240aa2435
master
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -allow-glsl -emit-spirv-directly 2//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -allow-glsl 3 4#version 310 es 5precision highp float; 6precision highp int; 7 8layout(location = 0) out mediump vec4 dEQP_FragColor; 9 10bool isOk(float a, float b) { return (a == b); } 11 12layout(location = 0) flat in float out0; 13layout(binding = 0, std140) uniform Reference 14{ 15 uint out0; 16} ref; 17 18void main() 19{ 20 bool RES = isOk(out0, ref.out0); 21 dEQP_FragColor = vec4(RES, RES, RES, 1.0); 22 // CHECK: OpDecorate {{.*}} Flat 23} 24