yum-mirror/slang

Making it easier to work with shaders

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

Yong HeCapability type checking. (#3530)14764896c

master
342 B13 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry main -profile cs_6_1
2void test()
3{
4    discard; // This should lead to `test` having `fragment` capability requirement.
5}
6
7[shader("compute")]
8[numthreads(1,1,1)]
9void main()
10{
11    // CHECK: error 36107
12    test(); // compute shader cannot call `test` that require capabiltiy `fragment`.
13}