blob: 89b2957b99a23de46cb5af384982115971bd4ad6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly
// CHECK: OpEntryPoint
struct Vertex
{
float4 pos : SV_Position;
[[vk::location(0)]] float3 color;
};
const static uint MAX_VERTS = 3;
const static uint MAX_PRIMS = 1;
[outputtopology("triangle")]
[numthreads(3, 1, 1)]
[shader("mesh")]
void entry_mesh(
in uint tig : SV_GroupIndex,
out vertices Vertex verts[MAX_VERTS],
out indices uint3 triangles[MAX_PRIMS])
{
}
|