summaryrefslogtreecommitdiffstats
path: root/tests/metal/simple-vertex-position-implicit-semantic.slang
blob: 6e51e0beabb0768a654aef2317f733e2dd806755 (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:SIMPLE(filecheck=METAL): -target metal -stage vertex -entry vertexMain
//TEST:SIMPLE(filecheck=METALLIB): -target metallib -stage vertex -entry vertexMain

//METAL: [position]]
//METALLIB: @vertexMain

// Vertex Shader which writes to position in a returned value 
float4 vertexMain() // : SV_Position
{
    return float4(1,2,3,4);
}