yum-mirror/slang

Making it easier to work with shaders

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

Yong HeRemove use of `G0` and `__target_intrinsic` in stdlib. (#4170)4edc72e4d

master
246 B12 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -stage compute -target spirv -emit-spirv-directly -entry main
2
3RWStructuredBuffer<float> output;
4static const int vmin = min(1,2);
5
6// CHECK: OpEntryPoint
7
8[numthreads(1,1,1)]
9void main()
10{
11    output[0] = vmin;
12}