yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
8086adc90
master
1//TEST:SIMPLE(filecheck=MTL): -target metal 2//TEST:SIMPLE(filecheck=LIB): -target metallib 3//TEST:SIMPLE(filecheck=WGSL): -target wgsl -entry vertMain -stage vertex 4 5 6// LIB-NOT: error : 7// LIB: @vertMain 8 9// MTL: attribute(3) 10// WGSL: @location(3) 11 12struct Vertex 13{ 14 [vk::location(0)] float4 pos; 15 [vk::location(3)] float2 uv; 16} 17 18[shader("vertex")] 19float4 vertMain(Vertex vin) : SV_Position 20{ 21 return vin.pos + vin.uv.x; 22}