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 | ||
create overload | Create a new compute vars object. | |
dispatchCompute | Dispatch the program using the argument values set in this object. |
Source
Lines 127-153 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);
/** Dispatch the program using the argument values set in this object.
*/
void dispatchCompute(ComputeContext* pContext, uint3 const& threadGroupCount);
protected:
ComputeVars(const ProgramReflection::SharedConstPtr& pReflector);
};