18#ifndef PXR_IMAGING_HD_MATERIAL_OVERRIDE_SCHEMA_H
19#define PXR_IMAGING_HD_MATERIAL_OVERRIDE_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
24#include "pxr/imaging/hd/schemaTypeDefs.h"
26#include "pxr/imaging/hd/schema.h"
32PXR_NAMESPACE_OPEN_SCOPE
39#define HD_MATERIAL_OVERRIDE_SCHEMA_TOKENS \
45 HD_MATERIAL_OVERRIDE_SCHEMA_TOKENS);
127 const HdContainerDataSourceHandle &fromParentContainer);
138 const TfToken& shaderNodeName,
const TfToken& parameterName)
const;
184 static HdContainerDataSourceHandle
186 const HdContainerDataSourceHandle &interfaceValues,
187 const HdContainerDataSourceHandle ¶meterValues
201 const HdContainerDataSourceHandle &interfaceValues);
204 const HdContainerDataSourceHandle ¶meterValues);
208 HdContainerDataSourceHandle
Build();
211 HdContainerDataSourceHandle _interfaceValues;
212 HdContainerDataSourceHandle _parameterValues;
219PXR_NAMESPACE_CLOSE_SCOPE
Template class for a schema backed by a container whose children have arbitrary names but an expected...
Represents an object that can identify the location of a data source.
The MaterialNodeParameter schema defines the value data source for the parameter.
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.
The MaterialOverride schema allows overrides to be made to various parts of materials,...
HD_API HdNodeToInputToMaterialNodeParameterSchema GetParameterValues() const
Contains names of shader nodes whose parameters values are overridden.
static HD_API HdMaterialOverrideSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "materialOverride" from the pa...
HD_API HdMaterialNodeParameterContainerSchema GetInterfaceValues() const
Maps interface names (ie.
HD_API HdMaterialNodeParameterSchema GetParameterOverride(const TfToken &shaderNodeName, const TfToken ¶meterName) const
Utility method to retrieve the data source for a parameter edit override.
static HD_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdContainerDataSourceHandle &interfaceValues, const HdContainerDataSourceHandle ¶meterValues)
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
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.