Loading...
Searching...
No Matches
HdPrmanMaterial Class Referencefinal

A representation for materials (including displacement) in prman. More...

#include <material.h>

+ Inheritance diagram for HdPrmanMaterial:

Public Member Functions

 HdPrmanMaterial (SdfPath const &id)
 
void Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
 Synchronizes state from the delegate to this object.
 
HdDirtyBits GetInitialDirtyBitsMask () const override
 Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim.
 
riley::MaterialId GetMaterialId () const
 
riley::DisplacementId GetDisplacementId () const
 
bool IsValid () const
 Return true if this material is valid.
 
void Finalize (HdRenderParam *renderParam) override
 Finalizes object resources.
 
HdMaterialNetwork2 const & GetMaterialNetwork () const
 Return the material network after filtering.
 
void SyncToRiley (HdSceneDelegate *sceneDelegate, riley::Riley *riley)
 Make sure this material has been updated in Riley.
 
- Public Member Functions inherited from HdSprim
HD_API HdSprim (SdfPath const &id)
 
SdfPath const & GetId () const
 Returns the identifier by which this state is known.
 
virtual void Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits)=0
 Synchronizes state from the delegate to this object.
 
virtual HD_API void Finalize (HdRenderParam *renderParam)
 Finalizes object resources.
 
virtual HdDirtyBits GetInitialDirtyBitsMask () const =0
 Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim.
 

Static Public Member Functions

static TfTokenVector const & GetShaderSourceTypes ()
 Return the static list of tokens supported.
 

Additional Inherited Members

- Public Types inherited from HdMaterial
enum  DirtyBits : HdDirtyBits { Clean = 0 , DirtyParams = 1 << 2 , DirtyResource = 1 << 3 , AllDirty = (DirtyParams | DirtyResource) }
 
- Protected Member Functions inherited from HdMaterial
HD_API HdMaterial (SdfPath const &id)
 

Detailed Description

A representation for materials (including displacement) in prman.

Definition at line 41 of file material.h.

Member Function Documentation

◆ Finalize()

void Finalize ( HdRenderParam renderParam)
overridevirtual

Finalizes object resources.

This function might not delete resources, but it should deal with resource ownership so that the sprim is deletable.

Reimplemented from HdSprim.

◆ GetDisplacementId()

riley::DisplacementId GetDisplacementId ( ) const
inline

Definition at line 58 of file material.h.

◆ GetInitialDirtyBitsMask()

HdDirtyBits GetInitialDirtyBitsMask ( ) const
overridevirtual

Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim.

Typically this would be all dirty bits.

Implements HdSprim.

◆ GetMaterialId()

riley::MaterialId GetMaterialId ( ) const
inline

Definition at line 57 of file material.h.

◆ GetMaterialNetwork()

HdMaterialNetwork2 const & GetMaterialNetwork ( ) const

Return the material network after filtering.

◆ GetShaderSourceTypes()

static TfTokenVector const & GetShaderSourceTypes ( )
static

Return the static list of tokens supported.

◆ IsValid()

bool IsValid ( ) const

Return true if this material is valid.

◆ Sync()

void Sync ( HdSceneDelegate sceneDelegate,
HdRenderParam renderParam,
HdDirtyBits *  dirtyBits 
)
overridevirtual

Synchronizes state from the delegate to this object.

Implements HdSprim.

◆ SyncToRiley()

void SyncToRiley ( HdSceneDelegate sceneDelegate,
riley::Riley *  riley 
)

Make sure this material has been updated in Riley.


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