Function create

Synopsis

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

static SharedPtr create(const Program::Desc &desc, const DefineList &programDefines=DefineList())

Description

Create a new compute program. Note that this call merely creates a program object. The actual compilation and link happens at a later time.

Parameters:

[ in ] desc - The program description.

[ in ] programDefines - Optional list of macro definitions to set into the program.

Return
A new object, or an exception is thrown if creation failed.

Source

Lines 42-47 in Source/Falcor/Core/Program/ComputeProgram.cpp. Line 60 in Source/Falcor/Core/Program/ComputeProgram.h.

ComputeProgram::SharedPtr ComputeProgram::create(const Program::Desc& desc, const DefineList& programDefines)
{
    SharedPtr pProg = SharedPtr(new ComputeProgram);
    pProg->init(desc, programDefines);
    return pProg;
}





Add Discussion as Guest

Log in to DocsForge