HDK
|
#include <extComputationSchema.h>
Classes | |
class | Builder |
Public Member Functions | |
HdExtComputationSchema (HdContainerDataSourceHandle container) | |
HD_API HdContainerDataSourceHandle | GetInputValues () |
HD_API HdVectorDataSourceHandle | GetInputComputations () |
HD_API HdVectorDataSourceHandle | GetOutputs () |
HD_API HdStringDataSourceHandle | GetGlslKernel () |
HD_API HdDataSourceBaseHandle | GetCpuCallback () |
HD_API HdSizetDataSourceHandle | GetDispatchCount () |
HD_API HdSizetDataSourceHandle | GetElementCount () |
Public Member Functions inherited from HdSchema | |
HdSchema (HdContainerDataSourceHandle container) | |
HD_API HdContainerDataSourceHandle | GetContainer () |
Returns the container data source that this schema is interpreting. More... | |
HD_API bool | IsDefined () const |
operator bool () const | |
Static Public Member Functions | |
static HD_API HdContainerDataSourceHandle | BuildRetained (const HdContainerDataSourceHandle &inputValues, const HdVectorDataSourceHandle &inputComputations, const HdVectorDataSourceHandle &outputs, const HdStringDataSourceHandle &glslKernel, const HdDataSourceBaseHandle &cpuCallback, const HdSizetDataSourceHandle &dispatchCount, const HdSizetDataSourceHandle &elementCount) |
static HD_API HdExtComputationSchema | GetFromParent (const HdContainerDataSourceHandle &fromParentContainer) |
static HD_API const TfToken & | GetSchemaToken () |
static HD_API const HdDataSourceLocator & | GetDefaultLocator () |
static HD_API const HdDataSourceLocator & | GetInputValuesLocator () |
Prim-level relative data source locator to locate inputValues. More... | |
static HD_API const HdDataSourceLocator & | GetInputComputationsLocator () |
Prim-level relative data source locator to locate inputComputations. More... | |
static HD_API const HdDataSourceLocator & | GetOutputsLocator () |
Prim-level relative data source locator to locate outputs. More... | |
static HD_API const HdDataSourceLocator & | GetGlslKernelLocator () |
Prim-level relative data source locator to locate glslKernel. More... | |
static HD_API const HdDataSourceLocator & | GetCpuCallbackLocator () |
Prim-level relative data source locator to locate cpuCallback. More... | |
static HD_API const HdDataSourceLocator & | GetDispatchCountLocator () |
Prim-level relative data source locator to locate dispatchCount. More... | |
static HD_API const HdDataSourceLocator & | GetElementCountLocator () |
Prim-level relative data source locator to locate elementCount. More... | |
Additional Inherited Members | |
Public Types inherited from HdSchema | |
using | UnderlyingDataSource = HdContainerDataSource |
Protected Member Functions inherited from HdSchema | |
template<typename T > | |
T::Handle | _GetTypedDataSource (TfToken name) |
Protected Attributes inherited from HdSchema | |
HdContainerDataSourceHandle | _container |
Definition at line 68 of file extComputationSchema.h.
|
inline |
Definition at line 71 of file extComputationSchema.h.
|
static |
Builds a container data source which includes the provided child data sources. Parameters with nullptr values are excluded. This is a low-level interface. For cases in which it's desired to define the container with a sparse set of child fields, the Builder class is often more convenient and readable.
HD_API HdDataSourceBaseHandle HdExtComputationSchema::GetCpuCallback | ( | ) |
|
static |
Prim-level relative data source locator to locate cpuCallback.
|
static |
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.
HD_API HdSizetDataSourceHandle HdExtComputationSchema::GetDispatchCount | ( | ) |
|
static |
Prim-level relative data source locator to locate dispatchCount.
HD_API HdSizetDataSourceHandle HdExtComputationSchema::GetElementCount | ( | ) |
|
static |
Prim-level relative data source locator to locate elementCount.
|
static |
Retrieves a container data source with the schema's default name token "extComputation" from the parent container and constructs a HdExtComputationSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.
HD_API HdStringDataSourceHandle HdExtComputationSchema::GetGlslKernel | ( | ) |
|
static |
Prim-level relative data source locator to locate glslKernel.
HD_API HdVectorDataSourceHandle HdExtComputationSchema::GetInputComputations | ( | ) |
|
static |
Prim-level relative data source locator to locate inputComputations.
HD_API HdContainerDataSourceHandle HdExtComputationSchema::GetInputValues | ( | ) |
|
static |
Prim-level relative data source locator to locate inputValues.
HD_API HdVectorDataSourceHandle HdExtComputationSchema::GetOutputs | ( | ) |
|
static |
Prim-level relative data source locator to locate outputs.
Returns a token where the container representing this schema is found in a container by default.