| 1 |
// RUN: %clang_cc1 -finclude-default-header -triple spirv-pc-vulkan1.3-pixel %s -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note |
| 2 |
|
| 3 |
// The following code is not legal: both semantics A and B will be lowered |
| 4 |
// into a Location decoration. And mixing implicit and explicit Location |
| 5 |
// assignment is not supported. |
| 6 |
struct S1 { |
| 7 |
float4 position : A; |
| 8 |
[[vk::location(3)]] float4 color : B; |
| 9 |
// expected-error@-1 {{partial explicit stage input location assignment via vk::location(X) unsupported}} |
| 10 |
}; |
| 11 |
|
| 12 |
[shader("pixel")] |
| 13 |
float4 main1(S1 p) : SV_Target { |
| 14 |
return p.position + p.color; |
| 15 |
} |