yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
a1827ee5e
master
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -fvk-use-entrypoint-name -emit-spirv-directly 2 3// CHECK: OpEntryPoint 4 5[shader("vertex")] 6float4 vmain(uint vertex_id : SV_VertexID) : SV_Position { 7 return float4(vertex_id, 0, 0, 1); 8} 9 10[shader("pixel")] 11float4 pmain(float4 position : SV_Position) : SV_Target { 12 return position; 13}