yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Jay KwakEnable WGSL tests that works for Metal related to Semantics (#5816)f0b991415

master
516 B17 linesraw
1//TEST:SIMPLE(filecheck=METAL): -target metallib -stage vertex -entry vertexMain
2//TEST:SIMPLE(filecheck=METALLIB): -target metallib -stage vertex -entry vertexMain
3//TEST:SIMPLE(filecheck=WGSL): -target wgsl -stage vertex -entry vertexMain
4//TEST:SIMPLE(filecheck=WGSLSPIRV): -target wgsl-spirv-asm -stage vertex -entry vertexMain
5
6//METAL-DAG: position
7//METALLIB: @vertexMain
8
9//WGSL: @builtin(position)
10//WGSLSPIRV: %vertexMain = OpFunction
11
12// Vertex Shader
13
14float4 vertexMain()
15{
16    return float4(1,1,1,1);
17}