Function swap

Synopsis

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

void swap(ThisType &rhs)

Description

Swap pointers with another reference.

Source

Lines 93-98 in Source/Falcor/Core/API/Shader.h.

void swap(ThisType& rhs)
{
    T* tmp = mpObject;
    mpObject = rhs.mpObject;
    rhs.mpObject = tmp;
}





Add Discussion as Guest

Log in to DocsForge