This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HdRenderParam Class Reference

The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render delegate and passed to each prim during Sync processing. More...

#include <renderDelegate.h>

+ Inheritance diagram for HdRenderParam:

Public Member Functions

virtual HD_API bool SetArbitraryValue (const TfToken &key, const VtValue &value)
 Set a custom value in the render param's implementation.
 
virtual HD_API VtValue GetArbitraryValue (const TfToken &key) const
 Retrieve a custom value identified by key from the render param's implementation.
 
virtual HD_API bool HasArbitraryValue (const TfToken &key) const
 Check whether a valid custom value exists for the specified key in the render param's implementation.
 

Detailed Description

The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render delegate and passed to each prim during Sync processing.

Definition at line 45 of file renderDelegate.h.

Constructor & Destructor Documentation

◆ HdRenderParam()

HdRenderParam ( )
inline

Definition at line 48 of file renderDelegate.h.

Member Function Documentation

◆ GetArbitraryValue()

virtual HD_API VtValue GetArbitraryValue ( const TfToken key) const
virtual

Retrieve a custom value identified by key from the render param's implementation.

The value could have been set via SetArbitraryValue() or provided internally by the render param. Return an empty VtValue if no value is associated with the key. This can either be used to retrieve arbitrary values by the render delegate or by Hydra client code. Since this method can be called by client code, it must be thread-safe.

◆ HasArbitraryValue()

virtual HD_API bool HasArbitraryValue ( const TfToken key) const
virtual

Check whether a valid custom value exists for the specified key in the render param's implementation.

Returns true if the value exists, false otherwise. Since this method can be called by client code, it must be thread-safe.

◆ SetArbitraryValue()

virtual HD_API bool SetArbitraryValue ( const TfToken key,
const VtValue value 
)
virtual

Set a custom value in the render param's implementation.

The key identifies the value, while value holds the data to set. Return true if the value was successfully set, false if the operation is not supported for the specified key or value. Since this method can be called by client code, it must be thread-safe.


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