Function operator==

Synopsis

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

bool operator==(const Desc &other) const

Description

No description yet.

Source

Lines 38-76 in Source/Falcor/Core/API/GraphicsStateObject.cpp. Line 84 in Source/Falcor/Core/API/GraphicsStateObject.h.

bool GraphicsStateObject::Desc::operator==(const GraphicsStateObject::Desc& other) const
{
    bool b = true;
    b = b && (mpLayout                  == other.mpLayout);
    b = b && (mFboDesc                  == other.mFboDesc);
    b = b && (mpProgram                 == other.mpProgram);
    b = b && (mSampleMask               == other.mSampleMask);
    b = b && (mpRootSignature           == other.mpRootSignature);
    b = b && (mPrimType                 == other.mPrimType);
    if (mpRasterizerState)
    {
        b = b && (mpRasterizerState == other.mpRasterizerState);
    }
    else
    {
        b = b && (other.mpRasterizerState == nullptr || other.mpRasterizerState == spDefaultRasterizerState);
    }
    if (mpBlendState)
    {
        b = b && (mpBlendState == other.mpBlendState);
    }
    else
    {
        b = b && (other.mpBlendState == nullptr || other.mpBlendState == spDefaultBlendState);
    }
    if (mpDepthStencilState)
    {
        b = b && (mpDepthStencilState == other.mpDepthStencilState);
    }
    else
    {
        b = b && (other.mpDepthStencilState == nullptr || other.mpDepthStencilState == spDefaultDepthStencilState);
    }
    return b;
}





Add Discussion as Guest

Log in to DocsForge