Skip to content

Triangle subdivision geometry shader test#1223

Merged
EmilioLaiso merged 2 commits into
llvm:mainfrom
Traverse-Research:geometry-shader-triangle-subdivision
May 27, 2026
Merged

Triangle subdivision geometry shader test#1223
EmilioLaiso merged 2 commits into
llvm:mainfrom
Traverse-Research:geometry-shader-triangle-subdivision

Conversation

@EmilioLaiso

Copy link
Copy Markdown
Collaborator

Adds a geometry shader test that exercises one-triangle-in / many-triangles-out expansion together with RestartStrip().
The GS subdivides the input triangle into four sub-triangles by joining the edge midpoints (three corner triangles + one inverted central triangle), emitting each as its own strip via RestartStrip().

Because the four sub-triangles exactly tile the parent, the rasterized coverage of the expanded output must equal that of the original triangle — every pixel inside the parent is covered by exactly one sub-triangle.

@EmilioLaiso EmilioLaiso merged commit 2034cde into llvm:main May 27, 2026
17 of 23 checks passed
@EmilioLaiso EmilioLaiso deleted the geometry-shader-triangle-subdivision branch May 27, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants