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/hdSt/enums.h"
30#include "pxr/imaging/hd/material.h"
31#include "pxr/imaging/hdSt/textureIdentifier.h"
34PXR_NAMESPACE_OPEN_SCOPE
37using HioGlslfxSharedPtr = std::shared_ptr<class HioGlslfx>;
38using HdSt_MaterialParamVector = std::vector<class HdSt_MaterialParam>;
62 TfToken const& GetMaterialTag()
const;
65 std::string
const& GetFragmentCode()
const;
68 std::string
const& GetVolumeCode()
const;
71 std::string
const& GetGeometryCode()
const;
74 std::string
const& GetDisplacementCode()
const;
80 HdSt_MaterialParamVector
const& GetMaterialParams()
const;
83 struct TextureDescriptor
101 bool useTexturePrimToFindTexture;
106 using TextureDescriptorVector = std::vector<TextureDescriptor>;
109 TextureDescriptorVector
const& GetTextureDescriptors()
const;
113 std::string _fragmentSource;
114 std::string _volumeSource;
115 std::string _geometrySource;
116 std::string _displacementSource;
118 HdSt_MaterialParamVector _materialParams;
119 TextureDescriptorVector _textureDescriptors;
120 HioGlslfxSharedPtr _surfaceGfx;
121 size_t _surfaceGfxHash;
126PXR_NAMESPACE_CLOSE_SCOPE
Collection of standard parameters such as wrap modes to sample a texture.
Helps HdStMaterial process a Hydra material network into shader source code and parameters values.
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.
A central registry of all GPU resources.
Class to identify a texture file or a texture within the texture file (e.g., a frame in a movie).
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
A map with string keys and VtValue values.
Describes a map from network type to network.