yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeSPIRV `Block` decoration fixes. (#4303)9a23a9aab

master
383 B16 linesraw
1// sign.slang
2
3//TEST:SIMPLE(filecheck=SPIRV):-target spirv-assembly -entry main -stage fragment
4//TEST:SIMPLE(filecheck=DXIL):-target dxil-assembly  -entry main -stage fragment -profile sm_6_0
5
6// Test cross compilation of the sign function
7
8// SPIRV: FSign
9// DXIL: define void @main
10
11float4 main() : SV_Target
12{
13    float4 s = sign(float4(1.5, 1.0, -1.5, -1.0));
14    return s;
15}
16