HDK
|
#include <imageShaderSchema.h>
Classes | |
class | Builder |
Public Member Functions | |
Member accessor | |
HD_API HdBoolDataSourceHandle | GetEnabled () |
HD_API HdIntDataSourceHandle | GetPriority () |
HD_API HdStringDataSourceHandle | GetFilePath () |
HD_API HdSampledDataSourceContainerSchema | GetConstants () |
Public Member Functions inherited from HdSchema | |
HdSchema (HdContainerDataSourceHandle container) | |
HD_API HdContainerDataSourceHandle | GetContainer () |
Returns the container data source that this schema is interpreting. More... | |
HD_API bool | IsDefined () const |
operator bool () const | |
Static Public Member Functions | |
Schema location | |
static HD_API const TfToken & | GetSchemaToken () |
static HD_API const HdDataSourceLocator & | GetDefaultLocator () |
Data source locators for members | |
The following methods return an HdDataSourceLocator (relative to the prim-level data source) where the data source for a member can be found. This is often useful for checking intersection against the HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied. | |
static HD_API const HdDataSourceLocator & | GetEnabledLocator () |
Prim-level relative data source locator to locate enabled. More... | |
static HD_API const HdDataSourceLocator & | GetPriorityLocator () |
Prim-level relative data source locator to locate priority. More... | |
static HD_API const HdDataSourceLocator & | GetFilePathLocator () |
Prim-level relative data source locator to locate filePath. More... | |
static HD_API const HdDataSourceLocator & | GetConstantsLocator () |
Prim-level relative data source locator to locate constants. More... | |
Schema construction | |
static HD_API HdContainerDataSourceHandle | BuildRetained (const HdBoolDataSourceHandle &enabled, const HdIntDataSourceHandle &priority, const HdStringDataSourceHandle &filePath, const HdContainerDataSourceHandle &constants) |
Schema retrieval | |
HdImageShaderSchema (HdContainerDataSourceHandle container) | |
static HD_API HdImageShaderSchema | GetFromParent (const HdContainerDataSourceHandle &fromParentContainer) |
Additional Inherited Members | |
Public Types inherited from HdSchema | |
using | UnderlyingDataSource = HdContainerDataSource |
Protected Member Functions inherited from HdSchema | |
template<typename T > | |
T::Handle | _GetTypedDataSource (TfToken name) |
Protected Attributes inherited from HdSchema | |
HdContainerDataSourceHandle | _container |
Definition at line 66 of file imageShaderSchema.h.
|
inline |
Retrieves a container data source with the schema's default name token "imageShader" from the parent container and constructs a HdImageShaderSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.
Definition at line 72 of file imageShaderSchema.h.
|
static |
Builds a container data source which includes the provided child data sources. Parameters with nullptr values are excluded. This is a low-level interface. For cases in which it's desired to define the container with a sparse set of child fields, the Builder class is often more convenient and readable.
HD_API HdSampledDataSourceContainerSchema HdImageShaderSchema::GetConstants | ( | ) |
|
static |
Prim-level relative data source locator to locate constants.
|
static |
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.
HD_API HdBoolDataSourceHandle HdImageShaderSchema::GetEnabled | ( | ) |
|
static |
Prim-level relative data source locator to locate enabled.
HD_API HdStringDataSourceHandle HdImageShaderSchema::GetFilePath | ( | ) |
|
static |
Prim-level relative data source locator to locate filePath.
|
static |
Retrieves a container data source with the schema's default name token "imageShader" from the parent container and constructs a HdImageShaderSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.
HD_API HdIntDataSourceHandle HdImageShaderSchema::GetPriority | ( | ) |
|
static |
Prim-level relative data source locator to locate priority.
Returns a token where the container representing this schema is found in a container by default.