Skip to content

Add isoline domain tessellation test#1285

Open
EmilioLaiso wants to merge 1 commit into
llvm:mainfrom
Traverse-Research:isoline-domain-tessellation
Open

Add isoline domain tessellation test#1285
EmilioLaiso wants to merge 1 commit into
llvm:mainfrom
Traverse-Research:isoline-domain-tessellation

Conversation

@EmilioLaiso
Copy link
Copy Markdown
Collaborator

Adds a graphics test covering the isoline tessellation domain — tessellate one isoline into four segments and capture each generated vertex's along-line coordinate (SV_DomainLocation.x) from the domain shader into a UAV.
The five evenly spaced values [0, 0.25, 0.5, 0.75, 1] prove the isoline domain ran and subdivided the line as expected.

The two isoline SV_TessFactor slots are ordered as so:

  • Edges[0] = number of lines,
  • Edges[1] = segments per line

on real D3D12 hardware and on Vulkan, which agree.
WARP orders them the opposite way (a bug?), so it tessellates this patch into four single-segment lines and produces [0, 0, 0, 0, 1] instead.

Tessellate one isoline into four segments and capture each generated
vertex's along-line coordinate (SV_DomainLocation.x) from the domain shader
into a UAV; the five evenly spaced values prove the isoline domain ran and
subdivided the line as expected.
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.

2 participants