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=METAL): -target metal 2//TEST:SIMPLE(filecheck=METALLIB): -target metallib 3 4// METAL: {{\[\[}}barycentric_coord{{\]\]}} 5// METALLIB: !"air.barycentric_coord" 6 7[shader("fragment")] 8float4 fragment_main(float4 pos: SV_Position, float3 barycentrics: SV_Barycentrics) 9 : SV_Target 10{ 11 return float4(barycentrics, 1.f); 12}