summaryrefslogtreecommitdiff
path: root/tests/cross-compile/sign.slang
blob: 17a51d93d11bb01ab28b8950c881be69e99a845d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// sign.slang

//TEST:CROSS_COMPILE:-target spirv-assembly -entry main -stage fragment
//TEST:CROSS_COMPILE:-target dxil-assembly  -entry main -stage fragment -profile sm_6_0

// Test cross compilation of the sign function

float4 main() : SV_Target
{
    float4 s = sign(float4(1.5, 1.0, -1.5, -1.0));
    return s;
}