Function setStencilFunc

Synopsis

#include <Source/Falcor/Core/API/DepthStencilState.h>

Desc & setStencilFunc(Face face, Func func)

Description

Set the stencil comparison function

Parameters

face - Chooses the face to apply the function to

func - Comparison function

Source

Lines 52-63 in Source/Falcor/Core/API/DepthStencilState.cpp. Line 112 in Source/Falcor/Core/API/DepthStencilState.h.

DepthStencilState::Desc& DepthStencilState::Desc::setStencilFunc(Face face, Func func)
{
    if(face == Face::FrontAndBack)
    {
        setStencilFunc(Face::Front, func);
        setStencilFunc(Face::Back, func);
        return *this;
    }
    StencilDesc& Desc = (face == Face::Front) ? mStencilFront : mStencilBack;
    Desc.func = func;
    return *this;
}





Add Discussion as Guest

Log in