context->setColorWriteMask(index, rgbaMask);
}
- void PixelProcessor::setStencilEnable(bool stencilEnable)
- {
- context->stencilEnable = stencilEnable;
- }
-
- void PixelProcessor::setStencilCompare(VkCompareOp stencilCompareMode)
- {
- context->stencilCompareMode = stencilCompareMode;
- }
-
- void PixelProcessor::setStencilReference(int stencilReference)
- {
- context->stencilReference = stencilReference;
- stencil.set(stencilReference, context->stencilMask, context->stencilWriteMask);
- }
-
- void PixelProcessor::setStencilReferenceCCW(int stencilReferenceCCW)
- {
- context->stencilReferenceCCW = stencilReferenceCCW;
- stencilCCW.set(stencilReferenceCCW, context->stencilMaskCCW, context->stencilWriteMaskCCW);
- }
-
- void PixelProcessor::setStencilMask(int stencilMask)
- {
- context->stencilMask = stencilMask;
- stencil.set(context->stencilReference, stencilMask, context->stencilWriteMask);
- }
-
- void PixelProcessor::setStencilMaskCCW(int stencilMaskCCW)
- {
- context->stencilMaskCCW = stencilMaskCCW;
- stencilCCW.set(context->stencilReferenceCCW, stencilMaskCCW, context->stencilWriteMaskCCW);
- }
-
- void PixelProcessor::setStencilFailOperation(VkStencilOp stencilFailOperation)
- {
- context->stencilFailOperation = stencilFailOperation;
- }
-
- void PixelProcessor::setStencilPassOperation(VkStencilOp stencilPassOperation)
- {
- context->stencilPassOperation = stencilPassOperation;
- }
-
- void PixelProcessor::setStencilZFailOperation(VkStencilOp stencilZFailOperation)
- {
- context->stencilZFailOperation = stencilZFailOperation;
- }
-
- void PixelProcessor::setStencilWriteMask(int stencilWriteMask)
- {
- context->stencilWriteMask = stencilWriteMask;
- stencil.set(context->stencilReference, context->stencilMask, stencilWriteMask);
- }
-
- void PixelProcessor::setStencilWriteMaskCCW(int stencilWriteMaskCCW)
- {
- context->stencilWriteMaskCCW = stencilWriteMaskCCW;
- stencilCCW.set(context->stencilReferenceCCW, context->stencilMaskCCW, stencilWriteMaskCCW);
- }
-
- void PixelProcessor::setTwoSidedStencil(bool enable)
- {
- context->twoSidedStencil = enable;
- }
-
- void PixelProcessor::setStencilCompareCCW(VkCompareOp stencilCompareMode)
- {
- context->stencilCompareModeCCW = stencilCompareMode;
- }
-
- void PixelProcessor::setStencilFailOperationCCW(VkStencilOp stencilFailOperation)
- {
- context->stencilFailOperationCCW = stencilFailOperation;
- }
-
- void PixelProcessor::setStencilPassOperationCCW(VkStencilOp stencilPassOperation)
- {
- context->stencilPassOperationCCW = stencilPassOperation;
- }
-
- void PixelProcessor::setStencilZFailOperationCCW(VkStencilOp stencilZFailOperation)
- {
- context->stencilZFailOperationCCW = stencilZFailOperation;
- }
-
void PixelProcessor::setBlendConstant(const Color<float> &blendConstant)
{
// FIXME: Compact into generic function // FIXME: Clamp
void setColorLogicOpEnabled(bool colorLogicOpEnabled);
void setLogicalOperation(VkLogicOp logicalOperation);
- void setStencilEnable(bool stencilEnable);
- void setStencilCompare(VkCompareOp stencilCompareMode);
- void setStencilReference(int stencilReference);
- void setStencilMask(int stencilMask);
- void setStencilFailOperation(VkStencilOp stencilFailOperation);
- void setStencilPassOperation(VkStencilOp stencilPassOperation);
- void setStencilZFailOperation(VkStencilOp stencilZFailOperation);
- void setStencilWriteMask(int stencilWriteMask);
- void setTwoSidedStencil(bool enable);
- void setStencilCompareCCW(VkCompareOp stencilCompareMode);
- void setStencilReferenceCCW(int stencilReference);
- void setStencilMaskCCW(int stencilMask);
- void setStencilFailOperationCCW(VkStencilOp stencilFailOperation);
- void setStencilPassOperationCCW(VkStencilOp stencilPassOperation);
- void setStencilZFailOperationCCW(VkStencilOp stencilZFailOperation);
- void setStencilWriteMaskCCW(int stencilWriteMask);
-
void setBlendConstant(const Color<float> &blendConstant);
void setAlphaBlendEnable(bool alphaBlendEnable);
void setRoutineCacheSize(int routineCacheSize);
// Other semi-constants
- Stencil stencil;
- Stencil stencilCCW;
Factor factor;
private: