24#ifndef EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_MATERIAL_H
25#define EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_MATERIAL_H
28#include "pxr/imaging/hd/material.h"
32PXR_NAMESPACE_OPEN_SCOPE
35class HdPrman_RenderParam;
50 HdDirtyBits *dirtyBits)
override;
57 riley::MaterialId GetMaterialId()
const {
return _materialId; }
58 riley::DisplacementId GetDisplacementId()
const {
return _displacementId; }
77 void _ResetMaterialWithLock(riley::Riley *riley);
78 void _SyncToRileyWithLock(
82 riley::MaterialId _materialId;
83 riley::DisplacementId _displacementId;
88 mutable std::mutex _syncToRileyMutex;
96HdPrman_ConvertHdMaterialNetwork2ToRmanNodes(
99 std::vector<riley::ShadingNode> *result);
105HdPrmanMaterial_GetFallbackSurfaceMaterialNetwork();
107PXR_NAMESPACE_CLOSE_SCOPE
Hydra Schema for a material object.
A representation for materials (including displacement) in prman.
void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Synchronizes state from the delegate to this object.
static TfTokenVector const & GetShaderSourceTypes()
Return the static list of tokens supported.
void SyncToRiley(HdSceneDelegate *sceneDelegate, riley::Riley *riley)
Make sure this material has been updated in Riley.
void Finalize(HdRenderParam *renderParam) override
Finalizes object resources.
bool IsValid() const
Return true if this material is valid.
HdMaterialNetwork2 const & GetMaterialNetwork() const
Return the material network after filtering.
HdDirtyBits GetInitialDirtyBitsMask() const override
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
Container of nodes and top-level terminal connections.
std::vector< TfToken > TfTokenVector
Convenience types.