18#ifndef PXR_IMAGING_HD_IMAGE_SHADER_SCHEMA_H
19#define PXR_IMAGING_HD_IMAGE_SHADER_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
24#include "pxr/imaging/hd/schemaTypeDefs.h"
27#include "pxr/imaging/hd/schema.h"
32PXR_NAMESPACE_OPEN_SCOPE
37#define HD_IMAGE_SHADER_SCHEMA_TOKENS \
46 HD_IMAGE_SHADER_SCHEMA_TOKENS);
51class HdImageShaderSchema :
public HdSchema
57 HdImageShaderSchema(HdContainerDataSourceHandle container)
66 static HdImageShaderSchema GetFromParent(
67 const HdContainerDataSourceHandle &fromParentContainer);
78 HdBoolDataSourceHandle GetEnabled()
const;
81 HdIntDataSourceHandle GetPriority()
const;
84 HdStringDataSourceHandle GetFilePath()
const;
90 HdMaterialNetworkSchema GetMaterialNetwork()
const;
100 static const TfToken &GetSchemaToken();
150 static HdContainerDataSourceHandle
152 const HdBoolDataSourceHandle &enabled,
153 const HdIntDataSourceHandle &priority,
154 const HdStringDataSourceHandle &filePath,
155 const HdContainerDataSourceHandle &constants,
156 const HdContainerDataSourceHandle &materialNetwork
170 const HdBoolDataSourceHandle &enabled);
173 const HdIntDataSourceHandle &priority);
176 const HdStringDataSourceHandle &filePath);
179 const HdContainerDataSourceHandle &constants);
182 const HdContainerDataSourceHandle &materialNetwork);
186 HdContainerDataSourceHandle
Build();
189 HdBoolDataSourceHandle _enabled;
190 HdIntDataSourceHandle _priority;
191 HdStringDataSourceHandle _filePath;
192 HdContainerDataSourceHandle _constants;
193 HdContainerDataSourceHandle _materialNetwork;
200PXR_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...
Template class for a schema backed by a container whose children have arbitrary names but an expected...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.