HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
material.h File Reference
+ Include dependency graph for material.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HdMaterial
 
struct  HdMaterialRelationship
 
struct  HdMaterialNode
 
struct  HdMaterialNetwork
 
struct  HdMaterialNetworkMap
 
struct  HdMaterialConnection2
 
struct  HdMaterialNode2
 
struct  HdMaterialNetwork2
 

Functions

HD_API bool operator== (const HdMaterialRelationship &lhs, const HdMaterialRelationship &rhs)
 
HD_API bool operator== (const HdMaterialNode &lhs, const HdMaterialNode &rhs)
 
HD_API HdMaterialNetwork2 HdConvertToHdMaterialNetwork2 (const HdMaterialNetworkMap &hdNetworkMap, bool *isVolume=nullptr)
 Converts a HdMaterialNetworkMap to a HdMaterialNetwork2. More...
 
HD_API HdSamplerParameters HdGetSamplerParameters (const HdMaterialNode2 &node, const SdrShaderNodeConstPtr &sdrNode, const SdfPath &nodePath=SdfPath::EmptyPath())
 
HD_API HdSamplerParameters HdGetSamplerParameters (const TfToken &nodeTypeId, const std::map< TfToken, VtValue > &parameters, const SdfPath &nodePath=SdfPath::EmptyPath())
 
HD_API std::ostream & operator<< (std::ostream &out, const HdMaterialNetwork &pv)
 
HD_API bool operator== (const HdMaterialNetwork &lhs, const HdMaterialNetwork &rhs)
 
HD_API bool operator!= (const HdMaterialNetwork &lhs, const HdMaterialNetwork &rhs)
 
HD_API std::ostream & operator<< (std::ostream &out, const HdMaterialNetworkMap &pv)
 
HD_API bool operator== (const HdMaterialNetworkMap &lhs, const HdMaterialNetworkMap &rhs)
 
HD_API bool operator!= (const HdMaterialNetworkMap &lhs, const HdMaterialNetworkMap &rhs)
 
HD_API std::ostream & operator<< (std::ostream &out, const HdMaterialNode2 &pv)
 
HD_API bool operator== (const HdMaterialNode2 &lhs, const HdMaterialNode2 &rhs)
 
HD_API bool operator!= (const HdMaterialNode2 &lhs, const HdMaterialNode2 &rhs)
 

Function Documentation

HD_API HdMaterialNetwork2 HdConvertToHdMaterialNetwork2 ( const HdMaterialNetworkMap &  hdNetworkMap,
bool *  isVolume = nullptr 
)
HD_API HdSamplerParameters HdGetSamplerParameters ( const HdMaterialNode2 &  node,
const SdrShaderNodeConstPtr &  sdrNode,
const SdfPath &  nodePath = SdfPath::EmptyPath() 
)

Extracts HdSamplerParameters from the parameters on the HdMaterialNode2 if present. Otherwise extracts the sampler parameters from the SdrNode.

HD_API HdSamplerParameters HdGetSamplerParameters ( const TfToken &  nodeTypeId,
const std::map< TfToken, VtValue > &  parameters,
const SdfPath &  nodePath = SdfPath::EmptyPath() 
)

Extract HdSamplerParameters from the given parameter map for the given node type id. Functionally this works essentially the same as the other HdGetSamplerParameters that operates on an HdMaterialNode2, but this allows extracting sampler parameters from the map without requiring an HdMaterialNode2.

HD_API bool operator!= ( const HdMaterialNetwork &  lhs,
const HdMaterialNetwork &  rhs 
)
HD_API bool operator!= ( const HdMaterialNetworkMap &  lhs,
const HdMaterialNetworkMap &  rhs 
)
HD_API bool operator!= ( const HdMaterialNode2 &  lhs,
const HdMaterialNode2 &  rhs 
)
HD_API std::ostream& operator<< ( std::ostream &  out,
const HdMaterialNetwork &  pv 
)
HD_API std::ostream& operator<< ( std::ostream &  out,
const HdMaterialNetworkMap &  pv 
)
HD_API std::ostream& operator<< ( std::ostream &  out,
const HdMaterialNode2 &  pv 
)
HD_API bool operator== ( const HdMaterialRelationship &  lhs,
const HdMaterialRelationship &  rhs 
)
HD_API bool operator== ( const HdMaterialNode &  lhs,
const HdMaterialNode &  rhs 
)
HD_API bool operator== ( const HdMaterialNetwork &  lhs,
const HdMaterialNetwork &  rhs 
)
HD_API bool operator== ( const HdMaterialNetworkMap &  lhs,
const HdMaterialNetworkMap &  rhs 
)
HD_API bool operator== ( const HdMaterialNode2 &  lhs,
const HdMaterialNode2 &  rhs 
)