7#ifndef EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_MATERIAL_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_MATERIAL_H
11#include "pxr/imaging/hd/material.h"
15PXR_NAMESPACE_OPEN_SCOPE
18class HdPrman_RenderParam;
33 HdDirtyBits *dirtyBits)
override;
40 riley::MaterialId GetMaterialId()
const {
return _materialId; }
41 riley::DisplacementId GetDisplacementId()
const {
return _displacementId; }
64 void _ResetMaterialWithLock(riley::Riley *riley);
65 void _SyncToRileyWithLock(
70 riley::MaterialId _materialId;
71 bool _dirtyDisplacement;
72 riley::DisplacementId _displacementId;
77 mutable std::mutex _syncToRileyMutex;
85HdPrman_ConvertHdMaterialNetwork2ToRmanNodes(
89 std::vector<riley::ShadingNode> *result);
95HdPrmanMaterial_GetFallbackSurfaceMaterialNetwork();
97PXR_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 bool IsTexExt(const std::string &ext)
Consult the HD_PRMAN_TEX_EXTS env var to determine which textures should be passed through without pr...
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.