|
HDK
|
A CallbackNode which allows for passing in a custom input / output dependency callback. More...
#include <testUtils.h>
Inheritance diagram for VdfTestUtils::DependencyCallbackNode:Public Types | |
| using | InputDependencyFunction = std::function< VdfMask::Bits(const VdfMaskedOutput &maskedOutput, const VdfConnection &inputConnection)> |
| using | OutputDependencyFunction = std::function< VdfMask(const VdfConnection &inputConnection, const VdfMask &inputDependencyMask, const VdfOutput &output)> |
Public Types inherited from VdfTestUtils::CallbackNode | |
| using | ValueFunction = void(const VdfContext &context) |
Additional Inherited Members | |
Static Public Member Functions inherited from VdfNode | |
| static VdfIndex | GetIndexFromId (const VdfId id) |
| static VdfVersion | GetVersionFromId (const VdfId id) |
Static Protected Member Functions inherited from VdfNode | |
| template<typename BaseClassType , typename ClassType > | |
| static size_t | _GetMemoryUsage (const ClassType &c, size_t dynamicSize) |
A CallbackNode which allows for passing in a custom input / output dependency callback.
Definition at line 138 of file testUtils.h.
| using VdfTestUtils::DependencyCallbackNode::InputDependencyFunction = std::function< VdfMask::Bits (const VdfMaskedOutput &maskedOutput, const VdfConnection &inputConnection)> |
Definition at line 143 of file testUtils.h.
| using VdfTestUtils::DependencyCallbackNode::OutputDependencyFunction = std::function< VdfMask (const VdfConnection &inputConnection, const VdfMask &inputDependencyMask, const VdfOutput &output)> |
Definition at line 148 of file testUtils.h.
|
inline |
Definition at line 150 of file testUtils.h.
|
inlineprotectedvirtual |
Returns a mask that indicates which elements of the data that flows along inputConnection are needed to compute the data flowing out as indicated by maskedOutput.
This is only called from ComputeInputDependencyMask(), to handle non-associated inputs.
The default implementation returns the connection mask on inputConnection, indicating that all elements are required. Derived classes can override this method in order to make the resulting dependencies more sparse.
This method should always return a mask that is a subset of the connection mask on inputConnection or an empty mask to indicate no dependencies.
Derived classes must ensure that this method is thread safe, in the sense that _ComputeInputDependencyMask() may be called simultaneously on a single node.
Reimplemented from VdfNode.
Definition at line 163 of file testUtils.h.
|
inlineprotectedvirtual |
Returns a mask that indicates which elements of the data that flows along output depend on the elements indicated by inputDependencyMask that flow in via inputConnection.
This is only called from ComputeOutputDependencyMask(), to handle non-associated inputs.
The default implementation does the following:
output has an affects mask, the affects mask is returned, indicating that all affected elements depend on the input.Derived classes can override this method in order to make the resulting dependencies more sparse.
Derived classes must ensure that this method is thread safe, in the sense that _ComputeOutputDependencyMask() may be called simultaneously on a single node.
Reimplemented from VdfNode.
Definition at line 175 of file testUtils.h.