35 #ifndef PXR_IMAGING_HD_EXT_COMPUTATION_SCHEMA_H
36 #define PXR_IMAGING_HD_EXT_COMPUTATION_SCHEMA_H
54 #define HD_EXT_COMPUTATION_SCHEMA_TOKENS \
109 static HdContainerDataSourceHandle
111 const HdContainerDataSourceHandle &inputValues,
112 const HdVectorDataSourceHandle &inputComputations,
113 const HdVectorDataSourceHandle &outputs,
115 const HdDataSourceBaseHandle &cpuCallback,
131 const HdContainerDataSourceHandle &inputValues);
134 const HdVectorDataSourceHandle &inputComputations);
137 const HdVectorDataSourceHandle &outputs);
143 const HdDataSourceBaseHandle &cpuCallback);
153 HdContainerDataSourceHandle
Build();
156 HdContainerDataSourceHandle _inputValues;
157 HdVectorDataSourceHandle _inputComputations;
158 HdVectorDataSourceHandle _outputs;
160 HdDataSourceBaseHandle _cpuCallback;
172 const HdContainerDataSourceHandle &fromParentContainer);
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)
HD_API Builder & SetDispatchCount(const HdSizetDataSourceHandle &dispatchCount)
HD_API HdStringDataSourceHandle GetGlslKernel()
HD_API HdContainerDataSourceHandle GetInputValues()
HD_API Builder & SetElementCount(const HdSizetDataSourceHandle &elementCount)
static HD_API const HdDataSourceLocator & GetGlslKernelLocator()
Prim-level relative data source locator to locate glslKernel.
HdStringDataSource::Handle HdStringDataSourceHandle
HD_API HdSizetDataSourceHandle GetDispatchCount()
HD_API Builder & SetOutputs(const HdVectorDataSourceHandle &outputs)
static HD_API const TfToken & GetSchemaToken()
TF_DECLARE_PUBLIC_TOKENS(HdExtComputationSchemaTokens, HD_API, HD_EXT_COMPUTATION_SCHEMA_TOKENS)
static HD_API const HdDataSourceLocator & GetDispatchCountLocator()
Prim-level relative data source locator to locate dispatchCount.
static HD_API const HdDataSourceLocator & GetCpuCallbackLocator()
Prim-level relative data source locator to locate cpuCallback.
static HD_API const HdDataSourceLocator & GetElementCountLocator()
Prim-level relative data source locator to locate elementCount.
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
HD_API Builder & SetInputComputations(const HdVectorDataSourceHandle &inputComputations)
HD_API HdSizetDataSourceHandle GetElementCount()
HD_API HdVectorDataSourceHandle GetInputComputations()
HdExtComputationSchema(HdContainerDataSourceHandle container)
HD_API Builder & SetGlslKernel(const HdStringDataSourceHandle &glslKernel)
HD_API HdDataSourceBaseHandle GetCpuCallback()
HD_API HdVectorDataSourceHandle GetOutputs()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static HD_API const HdDataSourceLocator & GetDefaultLocator()
#define PXR_NAMESPACE_CLOSE_SCOPE
static HD_API HdExtComputationSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
static HD_API const HdDataSourceLocator & GetInputValuesLocator()
Prim-level relative data source locator to locate inputValues.
HD_API Builder & SetCpuCallback(const HdDataSourceBaseHandle &cpuCallback)
HdSizetDataSource::Handle HdSizetDataSourceHandle
static HD_API const HdDataSourceLocator & GetInputComputationsLocator()
Prim-level relative data source locator to locate inputComputations.
HD_API Builder & SetInputValues(const HdContainerDataSourceHandle &inputValues)
static HD_API const HdDataSourceLocator & GetOutputsLocator()
Prim-level relative data source locator to locate outputs.
#define HD_EXT_COMPUTATION_SCHEMA_TOKENS