blob: cc54ee5f1c4b3c0ed01eebd54166fdb94886ba96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//TEST:SIMPLE(filecheck=METAL): -target metal -stage vertex -entry vertexMain
//TEST:SIMPLE(filecheck=METALLIB): -target metallib -stage vertex -entry vertexMain
//METAL: [position]]
//METALLIB: @vertexMain
struct VertexOut
{
float4 position : SV_Position;
}
// Vertex Shader which writes to position in a returned struct (as metal expects)
VertexOut vertexMain()
{
VertexOut o;
o.position = float4(1,2,3,4);
return o;
}
|