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//METALLIB: @vertexMain 6 7// Vertex Shader which writes to position 8void vertexMain(out float4 position : SV_Position, in uint vertexID : SV_VertexID) 9{ 10 position = float4(0.6, 0.1, 0.6, 0.33); 11}