Function operator==

Synopsis

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

bool operator==(const Desc &other) const

Description

Comparison operator

Source

Lines 192-204 in Source/Falcor/Core/API/FBO.cpp. Line 88 in Source/Falcor/Core/API/FBO.h.

bool Fbo::Desc::operator==(const Fbo::Desc& other) const
{
    if (mColorTargets.size() != other.mColorTargets.size()) return false;
    for (size_t i = 0; i < mColorTargets.size(); i++)
    {
        if (mColorTargets[i] != other.mColorTargets[i]) return false;
    }
    if (mDepthStencilTarget != other.mDepthStencilTarget) return false;
    if (mSampleCount != other.mSampleCount) return false;
    return true;
}





Add Discussion as Guest

Log in