[D3D12] Non-adaptive triangle tessellation
This commit is contained in:
@@ -63,14 +63,15 @@
|
||||
//
|
||||
// Name Index Mask Register SysValue Format Used
|
||||
// -------------------- ----- ------ -------- -------- ------- ------
|
||||
// XEVERTEXID 0 x 0 NONE int
|
||||
// XEVERTEXID 0 x 0 NONE int x
|
||||
//
|
||||
//
|
||||
// Output signature:
|
||||
//
|
||||
// Name Index Mask Register SysValue Format Used
|
||||
// -------------------- ----- ------ -------- -------- ------- ------
|
||||
// no Output
|
||||
// XEVERTEXID 0 x 0 NONE float x
|
||||
//
|
||||
// Tessellation Domain # of control points
|
||||
// -------------------- --------------------
|
||||
// Triangle 3
|
||||
@@ -89,6 +90,12 @@ dcl_tessellator_output_primitive output_triangle_cw
|
||||
dcl_globalFlags refactoringAllowed
|
||||
dcl_constantbuffer CB0[0:0][15], immediateIndexed, space=0
|
||||
hs_control_point_phase
|
||||
dcl_input vOutputControlPointID
|
||||
dcl_input v[3][0].x
|
||||
dcl_output o0.x
|
||||
dcl_temps 1
|
||||
mov r0.x, vOutputControlPointID
|
||||
itof o0.x, v[r0.x + 0][0].x
|
||||
ret
|
||||
hs_fork_phase
|
||||
dcl_hs_fork_phase_instance_count 3
|
||||
@@ -105,4 +112,4 @@ hs_fork_phase
|
||||
dcl_output_siv o3.x, finalTriInsideTessFactor
|
||||
mov o3.x, CB0[0][14].y
|
||||
ret
|
||||
// Approximately 6 instruction slots used
|
||||
// Approximately 8 instruction slots used
|
||||
|
||||
Reference in New Issue
Block a user