Function addDefaultVertexShaderIfNeeded

Synopsis

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

Desc & addDefaultVertexShaderIfNeeded()

Description

No description yet.

Source

Lines 117-125 in Source/Falcor/Core/Program/Program.cpp. Line 113 in Source/Falcor/Core/Program/Program.h.

Program::Desc& Program::Desc::addDefaultVertexShaderIfNeeded()
{
    // Don't set default vertex shader if one was set already.
    if(hasEntryPoint(ShaderType::Vertex))
    {
        return *this;
    }
    return addShaderLibrary("Scene/Raster.slang").entryPoint(ShaderType::Vertex, "defaultVS");
}





Add Discussion as Guest

Log in to DocsForge