blob: e385167ae366d4131a60a07cb0bbce9b0f15e11a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -fvk-invert-y
// CHECK: %[[CONST:[0-9]+]] = OpConstantComposite %v4float %float_0 %float_n1 %float_0 %float_0
// CHECK: OpStore {{.*}} %[[CONST]]
struct PS_IN
{
float4 vPositionPs : SV_Position;
};
[ shader("mesh") ]
[ outputtopology( "line" ) ]
[ numthreads( 64, 1, 1 ) ]
void main(
uint nThreadId : SV_DispatchThreadID,
uint nGroupThreadId : SV_GroupThreadID,
uint nGroupId : SV_GroupID,
out vertices PS_IN outputVerts[ 128 ],
out indices uint2 outputIB[ 64 ] )
{
SetMeshOutputCounts( 128, 64 );
outputVerts[ 2 * nGroupThreadId ].vPositionPs = float4( 0, 1, 0, 0 );
}
|