blob: 84807682aac7245c3a68206f8dba5c8fd27df692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv
//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-via-glsl -dump-intermediates
// CHECK: OpDecorate %vout_vertexID{{.*}} PerVertexKHR
struct VertexOutput
{
nointerpolation int vertexID;
}
[shader("fragment")]
float4 fsmain(VertexOutput vout) : SV_Target
{
return GetAttributeAtVertex(vout.vertexID, 0);
}
|