Loading...
Searching...
No Matches
HdPrman_MatFiltSceneIndexPlugin Class Reference

XXX The declarations below se can be moved to the cpp. More...

#include <matfiltSceneIndexPlugins.h>

+ Inheritance diagram for HdPrman_MatFiltSceneIndexPlugin:

Static Public Member Functions

static HDPRMAN_API HdSceneIndexPluginRegistry::InsertionPhase GetInsertionPhase ()
 

Protected Member Functions

HdSceneIndexBaseRefPtr _AppendSceneIndex (const HdSceneIndexBaseRefPtr &inputScene, const HdContainerDataSourceHandle &inputArgs) override
 Subclasses implement this to instantiate one or more scene indicies which take the provided scene as input.
 
- Protected Member Functions inherited from HdSceneIndexPlugin
virtual HD_API HdSceneIndexBaseRefPtr _AppendSceneIndex (const HdSceneIndexBaseRefPtr &inputScene, const HdContainerDataSourceHandle &inputArgs)
 Subclasses implement this to instantiate one or more scene indicies which take the provided scene as input.
 
virtual HD_API HdSceneIndexBaseRefPtr _AppendSceneIndex (const std::string &renderInstanceId, const HdSceneIndexBaseRefPtr &inputScene, const HdContainerDataSourceHandle &inputArgs)
 Subclasses implement this to instantiate one or more scene indicies which take the provided scene as input.
 
virtual HD_API bool _IsEnabled (const HdContainerDataSourceHandle &inputArgs) const
 Subclasses implement this to indicate whether the plugin is enabled.
 

Additional Inherited Members

- Public Member Functions inherited from HdSceneIndexPlugin
HD_API HdSceneIndexBaseRefPtr AppendSceneIndex (const std::string &renderInstanceId, const HdSceneIndexBaseRefPtr &inputScene, const HdContainerDataSourceHandle &inputArgs)
 
HD_API bool IsEnabled (const HdContainerDataSourceHandle &inputArgs) const
 Returns true if the plugin is enabled, in the sense that it should be consulted for its contribution to the scene index chain via AppendSceneIndex.
 

Detailed Description

XXX The declarations below se can be moved to the cpp.

Plugin that chains a scene index for each of the following ops:

  1. Resolve connections: Expand "virtual struct" connections, including evaluation of conditional actions.
  2. Node translation: Transform materials with a UsdPreviewSurface node or MaterialX node into Prman equivalents. XXX For MaterialX nodes, current support is limited to those connected to the 'surface' terminal.
  3. Node identifier resolution: Find shaders without nodeID's and attempt to resolve their identifier via UsdShade sourceAsset or sourceCode properties.

This plugin is registered with the scene index plugin registry for each of the Prman variants.

Definition at line 36 of file matfiltSceneIndexPlugins.h.

Member Function Documentation

◆ _AppendSceneIndex()

HdSceneIndexBaseRefPtr _AppendSceneIndex ( const HdSceneIndexBaseRefPtr &  inputScene,
const HdContainerDataSourceHandle &  inputArgs 
)
overrideprotectedvirtual

Subclasses implement this to instantiate one or more scene indicies which take the provided scene as input.

The return value should be the final scene created – or the inputScene itself if nothing is created.

Reimplemented from HdSceneIndexPlugin.


The documentation for this class was generated from the following file: