blob: 0591144a9c00d866bed01becc8899c62d48c56f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly -stage compute -entry computeMain
uniform StructuredBuffer<uint64_t> in;
uniform RWStructuredBuffer<uint32_t> out;
//CHECK: error 41202{{.*}}8{{.*}}4
[numthreads(4, 1, 1)]
[shader("compute")]
void computeMain() {
out[0] = bit_cast<uint32_t, uint64_t>(in[0]);
}
|