Generates the corrected tessellation factors for a quad patch.
Syntax
void Process2DQuadTessFactorsMax(
in float4 RawEdgeFactors,
in float2 InsideScale,
out float4 RoundedEdgeTessFactors,
out float2 RoundedInsideTessFactors,
out float2 UnroundedInsideTessFactors
);
Parameters
*RawEdgeFactors* \[in\]
Type: **float4**
The edge tessellation factors, passed into the tessellator stage.
*InsideScale* \[in\]
Type: **float2**
The scale factor applied to the UV tessellation factors computed by the tessellation stage. The allowable range for InsideScale is 0.0 to 1.0.
*RoundedEdgeTessFactors* \[out\]
Type: **float4**
The rounded edge-tessellation factors calculated by the tessellator stage.
*RoundedInsideTessFactors* \[out\]
Type: **float2**
The rounded tessellation factors calculated by the tessellator stage for inside edges.
*UnroundedInsideTessFactors* \[out\]
Type: **float2**
The tessellation factors calculated by the tessellator stage for inside edges.
Return value
This function does not return a value.
Remarks
Generates the corrected tessellation factors for a quad patch, computing the inside tessellation factors as the maximum of the edge tessellation factors. The U and V inside tessellation factors are computed independently using the maximums of opposing sides of the domain, then are scaled by InsideScale. The result is then rounded based on the partitioning mode, but the unrounded results are available using the UnroundedInsideTessFactors parameter.
Minimum Shader Model
This function is supported in the following shader models.
Process2DQuadTessFactorsMax
clang builtin,Process2DQuadTessFactorsMax
clang builtin withhlsl_intrinsics.h
Process2DQuadTessFactorsMax
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
Process2DQuadTessFactorsMax
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/Process2DQuadTessFactorsMax.hlsl
clang/test/SemaHLSL/BuiltIns/Process2DQuadTessFactorsMax-errors.hlsl
int_dx_Process2DQuadTessFactorsMax
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_Process2DQuadTessFactorsMax
to106
inDXIL.td
Process2DQuadTessFactorsMax.ll
andProcess2DQuadTessFactorsMax_errors.ll
tests inllvm/test/CodeGen/DirectX/
DirectX
SPIR-V
There is no support for
Process2DQuadTessFactorsMax
when targeting SPIR-V.Test Case(s)
Example 1
HLSL:
Generates the corrected tessellation factors for a quad patch.
Syntax
Parameters
Return value
This function does not return a value.
Remarks
Generates the corrected tessellation factors for a quad patch, computing the inside tessellation factors as the maximum of the edge tessellation factors. The U and V inside tessellation factors are computed independently using the maximums of opposing sides of the domain, then are scaled by InsideScale. The result is then rounded based on the partitioning mode, but the unrounded results are available using the UnroundedInsideTessFactors parameter.
Minimum Shader Model
This function is supported in the following shader models.
This function is supported in the following types of shaders:
See also