blob: edbf3ef071ad3fb3a9f80afd628d7f839b811b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//TEST:SIMPLE(filecheck=METAL): -target metal
//TEST:SIMPLE(filecheck=METALLIB): -target metallib
struct Output
{
float4 Diffuse : SV_Target0;
float4 Normal : SV_Target1;
float4 Material : SV_Target2;
}
// METALLIB: define {{.*}} @fragMain
// METAL: color(0)
// METAL: color(1)
// METAL: color(2)
[shader("fragment")]
Output fragMain()
{
return { float4(1), float4(2), float4(3) };
}
|