Enum
VkFragmentShadingRateCombinerOpKHR
Control how fragment shading rates are combined
The equation used for each combiner operation is defined by
VkFragmentShadingRateCombinerOpKHR:
typedef enum VkFragmentShadingRateCombinerOpKHR {
VK_FRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR = 0,
VK_FRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_KHR = 1,
VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MIN_KHR = 2,
VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MAX_KHR = 3,
VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_KHR = 4,
} VkFragmentShadingRateCombinerOpKHR;
pub struct FragmentShadingRateCombinerOpKHR(u32);
impl FragmentShadingRateCombinerOpKHR {
pub const KEEP: Self = 0;
pub const REPLACE: Self = 1;
pub const MIN: Self = 2;
pub const MAX: Self = 3;
pub const MUL: Self = 4;
}
VK_FRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHRspecifies a combiner operation of combine(Axy,Bxy) = Axy.VK_FRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_KHRspecifies a combiner operation of combine(Axy,Bxy) = Bxy.VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MIN_KHRspecifies a combiner operation of combine(Axy,Bxy) = min(Axy,Bxy).VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MAX_KHRspecifies a combiner operation of combine(Axy,Bxy) = max(Axy,Bxy).VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_KHRspecifies a combiner operation of combine(Axy,Bxy) = Axy*Bxy.
where combine(Axy,Bxy) is the combine operation, and Axy and Bxy are the inputs to the operation.
If fragmentShadingRateStrictMultiplyCombiner is VK_FALSE, using
VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_KHR with values of 1 for both
A and B in the same dimension results in the value 2 being produced for that
dimension.
See the definition of fragmentShadingRateStrictMultiplyCombiner for more information.
These operations are performed in a component-wise fashion.
Type
Enum