Debian Codegraph @

clang/test/SemaHLSL/Semantics/position.ps.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 : A) : SV_Position {
5 // expected-error@-1 {{semantic 'SV_Position' is unsupported in pixel shaders as output, requires one of the following: vertex input/output, pixel input}}
6 return a;
7 }