yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
4c78efd0c
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 (uint a, uint b) { return (a == b); } 11 12layout(location = 0) flat in uint 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: OpEntryPoint 23} 24