yum-mirror/slang

Making it easier to work with shaders

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

Yong HeDon't emit a warning when implicit casting from known in-range int lit to half. (#5814)b0dfb1aef

master
234 B10 linesraw
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv
2
3// CHECK-NOT: warning
4
5RWStructuredBuffer<half> output;
6[numthreads(1,1,1)]
7void computeMain()
8{
9    output[0] = 0; // coercion from 0 to half should not result in a warning.
10}