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 6struct VertexOut 7{ 8 float4 position : SV_Position; 9} 10// Vertex Shader which writes to position in a returned struct (as metal expects) 11VertexOut vertexMain() 12{ 13 VertexOut o; 14 o.position = float4(1,2,3,4); 15 return o; 16}