Code cleanup, fixed HLSL shaders
This commit is contained in:
parent
6444281e34
commit
7ad9ee1dc3
16 changed files with 274 additions and 408 deletions
|
|
@ -18,7 +18,10 @@ struct PnPatch
|
|||
// tessellation levels
|
||||
struct UBO
|
||||
{
|
||||
float tessLevel;
|
||||
float4x4 projection;
|
||||
float4x4 model;
|
||||
float tessAlpha;
|
||||
float tessLevel;
|
||||
};
|
||||
|
||||
cbuffer ubo : register(b0) { UBO ubo; }
|
||||
|
|
@ -83,7 +86,7 @@ ConstantsHSOutput ConstantsHS(InputPatch<VSOutput, 3> patch, uint InvocationID :
|
|||
|
||||
[domain("tri")]
|
||||
[partitioning("fractional_odd")]
|
||||
[outputtopology("triangle_ccw")]
|
||||
[outputtopology("triangle_cw")]
|
||||
[outputcontrolpoints(3)]
|
||||
[patchconstantfunc("ConstantsHS")]
|
||||
[maxtessfactor(20.0f)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue