summaryrefslogtreecommitdiffstats
path: root/tests/metal/simple-vertex-position-return-value.slang
blob: 9fe82477443b20daa4d6a335661e986387b2cf8f (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 (as metal expects)
float4 vertexMain() : SV_Position
{
    return float4(1,2,3,4);
}