summaryrefslogtreecommitdiffstats
path: root/tests/bugs/half-coercion.slang
blob: 43a12cf895993b4997e8b036bae2abe97e0c9895 (plain)
1
2
3
4
5
6
7
8
9
10
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv

// CHECK-NOT: warning

RWStructuredBuffer<half> output;
[numthreads(1,1,1)]
void computeMain()
{
    output[0] = 0; // coercion from 0 to half should not result in a warning.
}