35#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
36#define PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
40#include "pxr/imaging/hd/api.h"
43#include "pxr/imaging/hd/schema.h"
48PXR_NAMESPACE_OPEN_SCOPE
53#define HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_TOKENS \
57 (sourceComputationOutputName) \
61 HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_TOKENS);
66class HdExtComputationPrimvarSchema :
public HdSchema
72 HdExtComputationPrimvarSchema(HdContainerDataSourceHandle container)
80 static HdTokenDataSourceHandle BuildInterpolationDataSource(
82 return HdPrimvarSchema::BuildInterpolationDataSource(interpolation);
85 static HdTokenDataSourceHandle BuildRoleDataSource(
TfToken role) {
86 return HdPrimvarSchema::BuildRoleDataSource(role);
95 HdTokenDataSourceHandle GetInterpolation()
const;
98 HdTokenDataSourceHandle GetRole()
const;
101 HdPathDataSourceHandle GetSourceComputation()
const;
104 HdTokenDataSourceHandle GetSourceComputationOutputName()
const;
107 HdTupleTypeDataSourceHandle GetValueType()
const;
122 static HdContainerDataSourceHandle
124 const HdTokenDataSourceHandle &interpolation,
125 const HdTokenDataSourceHandle &role,
126 const HdPathDataSourceHandle &sourceComputation,
127 const HdTokenDataSourceHandle &sourceComputationOutputName,
128 const HdTupleTypeDataSourceHandle &valueType
142 const HdTokenDataSourceHandle &interpolation);
145 const HdTokenDataSourceHandle &role);
148 const HdPathDataSourceHandle &sourceComputation);
150 Builder &SetSourceComputationOutputName(
151 const HdTokenDataSourceHandle &sourceComputationOutputName);
154 const HdTupleTypeDataSourceHandle &valueType);
158 HdContainerDataSourceHandle
Build();
161 HdTokenDataSourceHandle _interpolation;
162 HdTokenDataSourceHandle _role;
163 HdPathDataSourceHandle _sourceComputation;
164 HdTokenDataSourceHandle _sourceComputationOutputName;
165 HdTupleTypeDataSourceHandle _valueType;
172PXR_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.