Function entryPoint

Synopsis

#include <Source/Falcor/Core/Program/Program.h>

Desc & entryPoint(ShaderType shaderType, const std::string &name)

Description

Adds an entry point based on the "active" source.

Source

Lines 82-95 in Source/Falcor/Core/Program/Program.cpp. Line 73 in Source/Falcor/Core/Program/Program.h.

Program::Desc& Program::Desc::entryPoint(ShaderType shaderType, std::string const& name)
{
    if (name.size() == 0)
        return *this;
    if (mActiveGroup < 0)
    {
        beginEntryPointGroup();
    }
    uint32_t entryPointIndex = declareEntryPoint(shaderType, name);
    mGroups[mActiveGroup].entryPoints.push_back(entryPointIndex);
    return *this;
}





Add Discussion as Guest

Log in