clang/test/SemaHLSL/Semantics/target.ps.input.hlsl
raw| 1 | // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-pixel -finclude-default-header -x hlsl -verify -o - %s |
| 2 | // RUN: %clang_cc1 -triple spirv-pc-vulkan1.3-pixel -finclude-default-header -x hlsl -verify -o - %s |
| 3 | |
| 4 | float4 main(float4 a : SV_Target) : A { |
| 5 | // expected-error@-1 {{semantic 'SV_Target' is unsupported in pixel shaders as input, requires one of the following: pixel out}} |
| 6 | return a; |
| 7 | } |