Version: 1.10
LanguageEnglish
  • C#

ShadingRateCombinerOp

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Specifies the combine operation used when merging multiple fragment shading rates (pipeline, primitive, attachment).

In Variable Rate Shading, the final shading rate is produced by two sequential combine operations. First, the pipeline rate and primitive rate are combined using the first operation. Then the result is combined with the attachment rate using the second operation. Each operation works component‑wise on the width and height of the shading rate. The final result is clamped to a set of device‑supported rates.

Properties

KeepSpecifies a combiner operation that keeps the first input (A). Equivalent to combine(A,B) = A.
ReplaceSpecifies a combiner operation that replaces with the second input (B). Equivalent to combine(A,B) = B.
MinSpecifies a combiner operation component‑wise minimum. Equivalent to combine(A,B) = min(A,B).
MaxSpecifies a combiner operation component‑wise maximum. Equivalent to combine(A,B) = max(A,B).
MulSpecifies a combiner operation Component‑wise multiplication. Equivalent to combine(A,B) = A * B. (In DirectX 12, specifies a combiner operation addition with clamp. Equivalent to combine(A,B) = min(maxRate, A + B))
CountThe count of ShadingRateCombinerOp.