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