blob: 35930cfcefb455456a9dd6d4f2b4068cb5e7b501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST:SIMPLE(filecheck=MTL): -target metal
//TEST:SIMPLE(filecheck=WGSL): -target wgsl -entry vertMain -stage vertex
// MTL: attribute(3)
// WGSL: @location(3)
struct Vertex
{
[vk::location(0)] float4 pos;
[vk::location(3)] float2 uv;
}
[shader("vertex")]
float4 vertMain(Vertex vin) : SV_Position
{
return vin.pos + vin.uv.x;
}
|