18#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
19#define PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
26#include "pxr/imaging/hd/schema.h"
31PXR_NAMESPACE_OPEN_SCOPE
36#define HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_TOKENS \
40 (sourceComputationOutputName) \
44 HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_TOKENS);
49class HdExtComputationPrimvarSchema :
public HdSchema
55 HdExtComputationPrimvarSchema(HdContainerDataSourceHandle container)
63 static HdTokenDataSourceHandle BuildInterpolationDataSource(
65 return HdPrimvarSchema::BuildInterpolationDataSource(interpolation);
68 static HdTokenDataSourceHandle BuildRoleDataSource(
TfToken role) {
69 return HdPrimvarSchema::BuildRoleDataSource(role);
78 HdTokenDataSourceHandle GetInterpolation()
const;
81 HdTokenDataSourceHandle GetRole()
const;
84 HdPathDataSourceHandle GetSourceComputation()
const;
87 HdTokenDataSourceHandle GetSourceComputationOutputName()
const;
90 HdTupleTypeDataSourceHandle GetValueType()
const;
105 static HdContainerDataSourceHandle
107 const HdTokenDataSourceHandle &interpolation,
108 const HdTokenDataSourceHandle &role,
109 const HdPathDataSourceHandle &sourceComputation,
110 const HdTokenDataSourceHandle &sourceComputationOutputName,
111 const HdTupleTypeDataSourceHandle &valueType
125 const HdTokenDataSourceHandle &interpolation);
128 const HdTokenDataSourceHandle &role);
131 const HdPathDataSourceHandle &sourceComputation);
133 Builder &SetSourceComputationOutputName(
134 const HdTokenDataSourceHandle &sourceComputationOutputName);
137 const HdTupleTypeDataSourceHandle &valueType);
141 HdContainerDataSourceHandle
Build();
144 HdTokenDataSourceHandle _interpolation;
145 HdTokenDataSourceHandle _role;
146 HdPathDataSourceHandle _sourceComputation;
147 HdTokenDataSourceHandle _sourceComputationOutputName;
148 HdTupleTypeDataSourceHandle _valueType;
155PXR_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.