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 4struct Output 5{ 6 float4 Diffuse : SV_Target0; 7 float4 Normal : SV_Target1; 8 float4 Material : SV_Target2; 9} 10 11// METALLIB: define {{.*}} @fragMain 12// METAL: color(0) 13// METAL: color(1) 14// METAL: color(2) 15 16[shader("fragment")] 17Output fragMain() 18{ 19 return { float4(1), float4(2), float4(3) }; 20}