Function addShaderString

Synopsis

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

Desc & addShaderString(const std::string &shader)

Description

Add a string of source code to use. This also sets the given string as the "active" source for subsequent entry points.

Source

Lines 67-73 in Source/Falcor/Core/Program/Program.cpp. Line 69 in Source/Falcor/Core/Program/Program.h.

Program::Desc& Program::Desc::addShaderString(const std::string& shader)
{
    mActiveSource = (int32_t) mSources.size();
    mSources.emplace_back(shader);
    return *this;
}





Add Discussion as Guest

Log in to DocsForge