yum-mirror/slang

Making it easier to work with shaders

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

ArielG-NVbit_cast & reinterpret warning if src->dst type not equally sized. (#3988)923ef7af3

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