35#ifndef PXR_IMAGING_HD_INSTANCE_SCHEMA_H
36#define PXR_IMAGING_HD_INSTANCE_SCHEMA_H
40#include "pxr/imaging/hd/api.h"
42#include "pxr/imaging/hd/schema.h"
47PXR_NAMESPACE_OPEN_SCOPE
52#define HD_INSTANCE_SCHEMA_TOKENS \
59 HD_INSTANCE_SCHEMA_TOKENS);
73class HdInstanceSchema :
public HdSchema
79 HdInstanceSchema(HdContainerDataSourceHandle container)
88 static HdInstanceSchema GetFromParent(
89 const HdContainerDataSourceHandle &fromParentContainer);
107 HdPathDataSourceHandle GetInstancer()
const;
112 HdIntDataSourceHandle GetPrototypeIndex()
const;
118 HdIntDataSourceHandle GetInstanceIndex()
const;
128 static const TfToken &GetSchemaToken();
148 static HdContainerDataSourceHandle
150 const HdPathDataSourceHandle &instancer,
151 const HdIntDataSourceHandle &prototypeIndex,
152 const HdIntDataSourceHandle &instanceIndex
166 const HdPathDataSourceHandle &instancer);
169 const HdIntDataSourceHandle &prototypeIndex);
172 const HdIntDataSourceHandle &instanceIndex);
176 HdContainerDataSourceHandle
Build();
179 HdPathDataSourceHandle _instancer;
180 HdIntDataSourceHandle _prototypeIndex;
181 HdIntDataSourceHandle _instanceIndex;
188PXR_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.