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);
51class HdExtComputationPrimvarSchema :
public HdSchema
57 HdExtComputationPrimvarSchema(HdContainerDataSourceHandle container)
65 static HdTokenDataSourceHandle BuildInterpolationDataSource(
67 return HdPrimvarSchema::BuildInterpolationDataSource(interpolation);
70 static HdTokenDataSourceHandle BuildRoleDataSource(
TfToken role) {
71 return HdPrimvarSchema::BuildRoleDataSource(role);
80 HdTokenDataSourceHandle GetInterpolation()
const;
83 HdTokenDataSourceHandle GetRole()
const;
86 HdPathDataSourceHandle GetSourceComputation()
const;
89 HdTokenDataSourceHandle GetSourceComputationOutputName()
const;
92 HdTupleTypeDataSourceHandle GetValueType()
const;
107 static HdContainerDataSourceHandle
109 const HdTokenDataSourceHandle &interpolation,
110 const HdTokenDataSourceHandle &role,
111 const HdPathDataSourceHandle &sourceComputation,
112 const HdTokenDataSourceHandle &sourceComputationOutputName,
113 const HdTupleTypeDataSourceHandle &valueType
127 const HdTokenDataSourceHandle &interpolation);
130 const HdTokenDataSourceHandle &role);
133 const HdPathDataSourceHandle &sourceComputation);
135 Builder &SetSourceComputationOutputName(
136 const HdTokenDataSourceHandle &sourceComputationOutputName);
139 const HdTupleTypeDataSourceHandle &valueType);
143 HdContainerDataSourceHandle
Build();
146 HdTokenDataSourceHandle _interpolation;
147 HdTokenDataSourceHandle _role;
148 HdPathDataSourceHandle _sourceComputation;
149 HdTokenDataSourceHandle _sourceComputationOutputName;
150 HdTupleTypeDataSourceHandle _valueType;
157PXR_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.