yum-mirror/slang

Making it easier to work with shaders

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

Yong HeDiagnose on using assignment as predicate expr. (#2774)492c6f2fd

master
233 B12 linesraw
1//DIAGNOSTIC_TEST:REFLECTION:-stage compute -entry main -target hlsl
2
3[numthreads(1, 1, 1)]
4void main(
5    uint3 dispatchThreadID : SV_DispatchThreadID)
6{
7    int a = 1;
8    if (a = 0) // error
9    {}
10    if ((a = 0)) // ok.
11    {}
12}