31#ifndef PXR_IMAGING_HD_INSTANCE_SCHEMA_H
32#define PXR_IMAGING_HD_INSTANCE_SCHEMA_H
34#include "pxr/imaging/hd/api.h"
36#include "pxr/imaging/hd/schema.h"
38PXR_NAMESPACE_OPEN_SCOPE
42#define HD_INSTANCE_SCHEMA_TOKENS \
49 HD_INSTANCE_SCHEMA_TOKENS);
62class HdInstanceSchema :
public HdSchema
65 HdInstanceSchema(HdContainerDataSourceHandle container)
82 HdPathDataSourceHandle GetInstancer();
87 HdIntDataSourceHandle GetPrototypeIndex();
93 HdIntDataSourceHandle GetInstanceIndex();
103 static HdContainerDataSourceHandle
105 const HdPathDataSourceHandle &instancer,
106 const HdIntDataSourceHandle &prototypeIndex,
107 const HdIntDataSourceHandle &instanceIndex
121 const HdPathDataSourceHandle &instancer);
124 const HdIntDataSourceHandle &prototypeIndex);
127 const HdIntDataSourceHandle &instanceIndex);
131 HdContainerDataSourceHandle
Build();
134 HdPathDataSourceHandle _instancer;
135 HdIntDataSourceHandle _prototypeIndex;
136 HdIntDataSourceHandle _instanceIndex;
145 static HdInstanceSchema GetFromParent(
146 const HdContainerDataSourceHandle &fromParentContainer);
151 static const TfToken &GetSchemaToken();
160PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
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.