yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
405d438bf
master
1//TEST:SIMPLE(filecheck=METAL): -target metal -stage vertex -entry vertexMain 2//TEST:SIMPLE(filecheck=METALLIB): -target metallib -stage vertex -entry vertexMain 3 4//METAL: [position]] 5//METAL: [user(AA)]] 6//METALLIB: @vertexMain 7 8// Vertex Shader which writes to position in a returned value (as metal expects), and as an out parameter which it doesn't 9float4 vertexMain(out uint aa : AA) : SV_Position 10{ 11 aa = 0; 12 return float4(1,2,3,4); 13}