Class Desc

Synopsis

#include <Source/Falcor/Raytracing/RtProgram/RtProgram.h>

class dlldecl Desc : public DescExtra

Description

No description yet.

Inheritance

Ancestors: DescExtra

Methods

Desc Overload
addDefine
addDefines
addHitGroup
addMiss
addRayGen
addShaderLibrary
setCompilerFlagsSet the compiler flags
setRayGen

Source

Lines 65-90 in Source/Falcor/Raytracing/RtProgram/RtProgram.h.

class dlldecl Desc : public DescExtra
{
public:
    Desc() { init(); }
    Desc(const std::string& filename) : mBaseDesc(filename) { init(); }
    Desc& addShaderLibrary(const std::string& filename);
    Desc& setRayGen(const std::string& raygen);
    Desc& addRayGen(const std::string& raygen);
    Desc& addMiss(uint32_t missIndex, const std::string& miss);
    Desc& addHitGroup(uint32_t hitIndex, const std::string& closestHit, const std::string& anyHit = "", const std::string& intersection = "");
    Desc& addDefine(const std::string& define, const std::string& value);
    Desc& addDefines(const DefineList& defines);
    /** Set the compiler flags. Replaces any previously set flags.
    */
    Desc& setCompilerFlags(Shader::CompilerFlags flags) { mBaseDesc.setCompilerFlags(flags); return *this; }
private:
    friend class RtProgram;
    void init();
    Program::Desc mBaseDesc;
    DefineList mDefineList;
};





Add Discussion as Guest

Log in