24 #ifndef PXR_IMAGING_HD_ST_MATERIAL_NETWORK_H
25 #define PXR_IMAGING_HD_ST_MATERIAL_NETWORK_H
28 #include "pxr/imaging/hdSt/api.h"
29 #include "pxr/imaging/hd/material.h"
30 #include "pxr/imaging/hdSt/textureIdentifier.h"
32 PXR_NAMESPACE_OPEN_SCOPE
35 using HioGlslfxSharedPtr = std::shared_ptr<class HioGlslfx>;
36 using HdSt_MaterialParamVector = std::vector<class HdSt_MaterialParam>;
49 ~HdStMaterialNetwork();
60 TfToken const& GetMaterialTag()
const;
63 std::string
const& GetFragmentCode()
const;
66 std::string
const& GetGeometryCode()
const;
72 HdSt_MaterialParamVector
const& GetMaterialParams()
const;
75 struct TextureDescriptor
93 bool useTexturePrimToFindTexture;
98 using TextureDescriptorVector = std::vector<TextureDescriptor>;
101 TextureDescriptorVector
const& GetTextureDescriptors()
const;
105 std::string _fragmentSource;
106 std::string _geometrySource;
108 HdSt_MaterialParamVector _materialParams;
109 TextureDescriptorVector _textureDescriptors;
110 HioGlslfxSharedPtr _surfaceGfx;
111 size_t _surfaceGfxHash;
116 PXR_NAMESPACE_CLOSE_SCOPE
A map with string keys and VtValue values.
Helps HdStMaterial process a Hydra material network into shader source code and parameters values...
Class to identify a texture file or a texture within the texture file (e.g., a frame in a movie)...
Token for efficient comparison, assignment, and hashing of known strings.
A central registry of all GPU resources.
A path value used to locate objects in layers or scenegraphs.
Collection of standard parameters such as wrap modes to sample a texture.
Describes a map from network type to network.
HDST_API void ProcessMaterialNetwork(SdfPath const &materialId, HdMaterialNetworkMap const &hdNetworkMap, HdStResourceRegistry *resourceRegistry)
Process a material network topology and extract all the information we need from it.