35#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
36#define PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
38#include "pxr/imaging/hd/api.h"
40#include "pxr/imaging/hd/primvarSchema.h"
43PXR_NAMESPACE_OPEN_SCOPE
47#define HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_TOKENS \
51 (sourceComputationOutputName) \
55 HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_TOKENS);
59class HdExtComputationPrimvarSchema :
public HdSchema
62 HdExtComputationPrimvarSchema(HdContainerDataSourceHandle container)
68 static HdTokenDataSourceHandle BuildInterpolationDataSource(
70 return HdPrimvarSchema::BuildInterpolationDataSource(interpolation);
73 static HdTokenDataSourceHandle BuildRoleDataSource(
TfToken role) {
74 return HdPrimvarSchema::BuildRoleDataSource(role);
82 HdTokenDataSourceHandle GetInterpolation();
84 HdTokenDataSourceHandle GetRole();
86 HdPathDataSourceHandle GetSourceComputation();
88 HdTokenDataSourceHandle GetSourceComputationOutputName();
90 HdTupleTypeDataSourceHandle GetValueType();
100 static HdContainerDataSourceHandle
102 const HdTokenDataSourceHandle &interpolation,
103 const HdTokenDataSourceHandle &role,
104 const HdPathDataSourceHandle &sourceComputation,
105 const HdTokenDataSourceHandle &sourceComputationOutputName,
106 const HdTupleTypeDataSourceHandle &valueType
120 const HdTokenDataSourceHandle &interpolation);
123 const HdTokenDataSourceHandle &role);
126 const HdPathDataSourceHandle &sourceComputation);
128 Builder &SetSourceComputationOutputName(
129 const HdTokenDataSourceHandle &sourceComputationOutputName);
132 const HdTupleTypeDataSourceHandle &valueType);
136 HdContainerDataSourceHandle
Build();
139 HdTokenDataSourceHandle _interpolation;
140 HdTokenDataSourceHandle _role;
141 HdPathDataSourceHandle _sourceComputation;
142 HdTokenDataSourceHandle _sourceComputationOutputName;
143 HdTupleTypeDataSourceHandle _valueType;
148PXR_NAMESPACE_CLOSE_SCOPE
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.