Class ComputeVars

Synopsis

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

class dlldecl ComputeVars : public ProgramVars

Description

No description yet.

Inheritance

Ancestors: ProgramVars

Methods

ComputeVars
apply
createCreate a new compute vars object.

Source

Lines 127-149 in Source/Falcor/Core/Program/ProgramVars.h.

class dlldecl ComputeVars : public ProgramVars
{
public:
    using SharedPtr = ParameterBlockSharedPtr<ComputeVars>;
    using SharedConstPtr = std::shared_ptr<const ComputeVars>;
    /** Create a new compute vars object.
        \param[in] pReflector A program reflection object containing the requested declarations.
        \return A new object, or an exception is thrown if creation failed.
    */
    static SharedPtr create(const ProgramReflection::SharedConstPtr& pReflector);
    /** Create a new compute vars object.
        \param[in] pProg A program containing the requested declarations. The active version of the program is used.
        \return A new object, or an exception is thrown if creation failed.
    */
    static SharedPtr create(const ComputeProgram* pProg);
    virtual bool apply(ComputeContext* pContext, bool bindRootSig, RootSignature* pRootSignature);
protected:
    ComputeVars(const ProgramReflection::SharedConstPtr& pReflector);
};





Add Discussion as Guest

Log in to DocsForge